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

CVE-2021-31999: Rancher Privilege escalation vulnerability via malicious "Connection" header

April 24, 2024

A vulnerability was discovered in Rancher 2.0.0 through the aforementioned patched versions, where a malicious Rancher user could craft an API request directed at the proxy for the Kubernetes API of a managed cluster to gain access to information they do not have access to. This is done by passing the “Impersonate-User” or “Impersonate-Group” header in the Connection header, which is then correctly removed by the proxy. At this point, instead of impersonating the user and their permissions, the request will act as if it was from the Rancher management server and incorrectly return the information. The vulnerability is limited to valid Rancher users with some level of permissions on the cluster. There is not a direct mitigation besides upgrading to the patched Rancher versions.

References

  • bugzilla.suse.com/show_bug.cgi?id=1187084
  • github.com/advisories/GHSA-pvxj-25m6-7vqr
  • github.com/rancher/rancher
  • nvd.nist.gov/vuln/detail/CVE-2021-31999

Code Behaviors & Features

Detect and mitigate CVE-2021-31999 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.4.16, all versions starting from 2.5.0 before 2.5.9

Fixed versions

  • 2.4.16
  • 2.5.9

Solution

Upgrade to versions 2.4.16, 2.5.9 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-807: Reliance on Untrusted Inputs in a Security Decision

Source file

go/github.com/rancher/rancher/CVE-2021-31999.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:33 +0000.