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

- Severity: High 8.8 (CVSS:3.1, scored by suse) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 65% of CVEs (2026-12-01)
- Published: 2021-07-15T08:55:18.646Z
- Modified: 2026-09-10T03:50:12.767Z
- Also known as: GHSA-pvxj-25m6-7vqr, GO-2024-2778
- Related: CGA-9q35-52xf-4r6g
- Weaknesses: CWE-807
- Assigned by: suse

## 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.

(As written by CVE List.)

## Affected

- Rancher Rancher: from Rancher before 2.5.9; before 2.4.16; from 2.5.0 before 2.5.9
- Rancher SUSE Linux Enterprise Server 15: from Rancher before 2.4.16
- 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

## Every score

- suse: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## 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)

## Sources

- CVE List: [CVE-2021-31999](https://www.cve.org/CVERecord?id=CVE-2021-31999), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-pvxj-25m6-7vqr](https://github.com/advisories/GHSA-pvxj-25m6-7vqr), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2778](https://pkg.go.dev/vuln/GO-2024-2778), CC-BY-4.0, modified 2026-07-10
- NVD: [CVE-2021-31999](https://nvd.nist.gov/vuln/detail/CVE-2021-31999), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31999 · Whole record: https://cve.day/CVE-2021-31999.json · Rebuilt by cve.day 2026-11-25T22:58:02.667Z
