BreachSpiderVerified, not vibes

CVE-2021-31999 in Rancher

High 8.8

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.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.8
EPSS1.1%
EPSS percentile64th
FixUnknown

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Rancher Rancher < 2.4.16 ≥ 2.5.0, < 2.5.9

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-31999
BreachSpider IDBS-2021-GLOBAL-076723-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2021-07-15
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-807: CWE-807

Analysis AI-written, not human-reviewed

A Reliance on Untrusted Inputs in a Security Decision vulnerability in Rancher allows users in the cluster to act as other users by forging specific headers, impacting versions prior to 2.5.9 and 2.4.16.

The vulnerability is exploited by forging the 'Impersonate-User' or 'Impersonate-Group' headers, enabling unauthorized users to impersonate other users within the Rancher cluster.

Questions

What is CVE-2021-31999?

A Reliance on Untrusted Inputs in a Security Decision vulnerability in Rancher allows users in the cluster to act as other users by forging specific headers, impacting versions prior to 2.5.9 and 2.4.16.

What is the CVSS score for CVE-2021-31999?

CVE-2021-31999 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.1%.

Is CVE-2021-31999 actively exploited?

No confirmed active exploitation of CVE-2021-31999 as of 2026-09-25.

How do I remediate CVE-2021-31999?

Priority: IMMEDIATE.

What systems are affected by CVE-2021-31999?

CVE-2021-31999 affects Rancher Rancher.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Rancher","product":"Rancher","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.