CVE-2021-31999
mediumpriority · track · 35EPSS 0.011 · 64 %ileEURUUSEPSS · scored 2026-10-27
A Reliance on Untrusted Inputs in a Security Decision vulnerability in Rancher allows users in the cluster to act as others users in the cluster by forging the "Impersonate-User" or "Impersonate-Group" headers. This issue affects: Rancher versions prior to 2.5.9. Rancher versions prior to 2.4.16.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.5–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (9)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-pvxj-25m6-7vqrRancher Privilege escalation vulnerability via malicious "Connection" header2024-04-24ghsa · osvUS
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.
- GO-2024-2778Rancher Privilege escalation vulnerability via malicious "Connection" header in github.com/rancher/rancher2024-06-10vendor · osvUS
Rancher Privilege escalation vulnerability via malicious "Connection" header in github.com/rancher/rancher. NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions. (If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.) The additional affected modules and versions are: github.com/rancher/rancher before v2.4.16, from v2.5.0 before v2.5.9.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (5)
External citations — patches, advisories, analysis.
- https://bugzilla.suse.com/show_bug.cgi?id=1187084cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-31999cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021072313cnnvd
- https://bugzilla.suse.com/show_bug.cgi?id=1187084enisa_euvd
- https://bugzilla.suse.com/show_bug.cgi?id=1187084Issue TrackingRelease NotesThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan