8.8high
Rancher: Privilege escalation vulnerability via malicious Connection header
- Severity
- 8.8high CVSS:3.1 by suse
- Exploit likelihood
- 1.05% (higher than 65% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- suse
- Also known as
- GHSA-pvxj-25m6-7vqrGO-2024-2778
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Rancher Rancher | from Rancher before 2.5.9, before 2.4.16, from 2.5.0 before 2.5.9 | CVE List, NVD |
| Rancher SUSE Linux Enterprise Server 15 | from Rancher before 2.4.16 | CVE List |
| github.com/rancher/rancher (Go) | from 2.0.0 before 2.4.16, from 2.5.0 before 2.5.9, from 2.0.0+incompatible | GitHub Advisory Database, Go Vulnerability Database |
All scores
| suse | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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 Vulnerability Database
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.
NVD (es)
Una vulnerabilidad de Dependencia de Datos no Confiables en una Decisión de Seguridad en Rancher permite a usuarios del cluster actuar como otros usuarios del cluster al falsificar los encabezados "Impersonate-User" o "Impersonate-Group". Este problema afecta a: Rancher versiones anteriores a 2.5.9. Rancher versiones anteriores a 2.4.16
References
| https://bugzilla.suse.com/show_bug.cgi?id=1187084 | issue-tracking, release-notes, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-31999 | advisory | |
| https://github.com/rancher/rancher | package | |
| https://pkg.go.dev/vuln/GO-2024-2778 | web | |
| https://github.com/advisories/GHSA-pvxj-25m6-7vqr | advisory | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31999 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pvxj-25m6-7vqr changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2778 changed 2026-07-10 | CC-BY-4.0 |
| NVD | CVE-2021-31999 changed 2026-06-17 | Public domain |