CVE-2021-31999
Rancher vulnerability analysis and mitigation

Overview

A Reliance on Untrusted Inputs in a Security Decision vulnerability (CVE-2021-31999) was discovered in Rancher that allows users in the cluster to act as other users by forging the "Impersonate-User" or "Impersonate-Group" headers. This vulnerability affects Rancher versions prior to 2.5.9 and 2.4.16, and was disclosed on July 15, 2021 (NVD).

Technical details

The vulnerability stems from improper handling of the "Connection" header in authenticated requests. When a malicious "Connection" header is passed, an attacker can cause the proxy to omit the "Impersonate-User" and "Impersonate-Group" headers on requests made upstream to the Kubernetes API of the attached cluster. The vulnerability has been assigned a CVSS v3.1 score of 8.8 HIGH (NVD, SUSE Bugzilla).

Impact

This vulnerability allows authenticated users within the cluster to impersonate other users and groups, effectively enabling privilege escalation and unauthorized access to cluster resources. The high CVSS score reflects the significant potential impact on system security (NVD).

Exploitability

The vulnerability requires an authenticated user within the cluster to exploit. The attack vector involves manipulating the "Connection" header in requests to the Kubernetes API, which can lead to successful impersonation of other users and groups (SUSE Bugzilla).

Mitigation and workarounds

The vulnerability has been fixed in Rancher versions 2.5.9 and 2.4.16. Users are advised to upgrade to these or later versions to mitigate the security risk (Rancher Release).

Additional resources


SourceThis report was generated using AI

Related Rancher vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-44946CRITICAL9.5
  • Rancher logoRancher
  • rancher
NoYesJun 30, 2026
CVE-2026-41052CRITICAL9.4
  • Rancher logoRancher
  • harvester-fips
NoYesJun 29, 2026
CVE-2026-41053HIGH8.8
  • Rancher logoRancher
  • github.com/rancher/rancher
NoYesJun 30, 2026
CVE-2023-22649HIGH8.4
  • Rancher logoRancher
  • rancher
NoYesOct 16, 2024
CVE-2025-67601MEDIUM4.8
  • Rancher logoRancher
  • rancher
NoYesFeb 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management