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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-07-15 · Modified: 2024-09-17
- Aliases: GHSA-pvxj-25m6-7vqr, GO-2024-2778, CGA-4crm-3cvp-w6cr, CGA-5687-pp8h-v8w5, CGA-77hq-pvvp-4pgr, CGA-7r3q-838v-pwv4, CGA-c8vj-4cjx-9pp3, CGA-f94m-6v5q-mc4x, CGA-jf38-gwjv-grg2, CGA-rvq6-7prr-c3q4
- Record: https://cvemate.com/vulnerability/CVE-2021-31999 · JSON: https://cvemate.com/vulnerability/CVE-2021-31999/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.052%, percentile 65.441%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard harvester (Chainguard): All versions (No fix recorded)
- chainguard harvester-fips (Chainguard): All versions (No fix recorded)
- chainguard harvester-fips-webhook (Chainguard): All versions (No fix recorded)
- chainguard harvester-webhook (Chainguard): All versions (No fix recorded)
- github.com/rancher rancher (Go): ≥ 2.0.0, \< 2.4.16 \| ≥ 2.5.0, \< 2.5.9 \| ≥ 2.0.0+incompatible (No fix recorded)
- rancher rancher: ≥ Rancher, \< 2.5.9 \| \< 2.4.16 \| ≥ 2.5.0, \< 2.5.9
- rancher suse linux enterprise server 15: ≥ Rancher, \< 2.4.16

## References

- <https://bugzilla.suse.com/show_bug.cgi?id=1187084>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-31999>
- <https://github.com/rancher/rancher>
- <https://pkg.go.dev/vuln/GO-2024-2778>
- <https://github.com/advisories/GHSA-pvxj-25m6-7vqr>

---

Data as of 2026-12-05T11:28:56.543Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
