Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/rancher/rancher
  4. ›
  5. CVE-2018-20321

CVE-2018-20321: Exposure of Resource to Wrong Sphere

June 23, 2021

An issue was discovered in Rancher 2 through 2.1.5. Any project member with access to the default namespace can mount the netes-default service account in a pod, and then use that pod to execute administrative privileged commands against the k8s cluster. This could be mitigated by isolating the default namespace in a separate project, where only cluster admins can be given permissions to access. As of 2018-12-20, this bug affected ALL clusters created or imported by Rancher.

References

  • forums.rancher.com/c/announcements
  • github.com/advisories/GHSA-9qq2-xhmc-h9qr
  • github.com/rancher/rancher/commit/6ea187fcc2309d5a7a14ed47de5688bf6573f448
  • github.com/rancher/rancher/releases/tag/v2.1.6
  • nvd.nist.gov/vuln/detail/CVE-2018-20321
  • rancher.com/blog/2019/2019-01-29-explaining-security-vulnerabilities-addressed-in-rancher-v2-1-6-and-v2-0-11/

Code Behaviors & Features

Detect and mitigate CVE-2018-20321 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.1.6

Fixed versions

  • 2.1.6

Solution

Upgrade to version 2.1.6 or above.

Impact 8.8 HIGH

CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-668: Exposure of Resource to Wrong Sphere
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

go/github.com/rancher/rancher/CVE-2018-20321.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:08 +0000.