{"id":"CVE-2021-31999","published":"2021-07-15T08:55:18Z","modified":"2024-09-17T02:26:40Z","title":"Rancher: Privilege escalation vulnerability via malicious Connection header","vendor":"Rancher","product":"Rancher","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01052,"percentile":0.63702,"provenance":"source"},"cwes":[{"id":"CWE-807","name":"Reliance on Untrusted Inputs in a Security Decision"}],"references":[{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1187084","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":12.74},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"rancher","affectedVersions":[{"vendor":"Rancher","product":"Rancher","versions":[">= Rancher, < 2.5.9"]},{"vendor":"Rancher","product":"SUSE Linux Enterprise Server 15","versions":[">= Rancher, < 2.4.16"]}],"affected":[{"ecosystem":"Go","package":"github.com/rancher/rancher","vulnerableRanges":[">=2.0.0, <2.4.16",">=2.5.0, <2.5.9",">=2.0.0+incompatible"],"patched":["2.4.16","2.5.9"],"from":["GHSA-pvxj-25m6-7vqr","GO-2024-2778"],"provenance":"source"}],"summary":{"text":"The flaw is in Rancher, where its handling of the \"Impersonate-User\" and \"Impersonate-Group\" headers is vulnerable because it trusts untrusted input in a security decision, affecting versions prior to 2.5.9 and prior to 2.4.16. An attacker holding a valid account in the cluster, with no user interaction required, can forge these headers over the network to act as other users or groups within the cluster.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:40Z"},"euvd":{"id":"EUVD-2024-1271","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-25313","published":"2021-03-05","fixed":"2.5.6","kev":false,"link":{"from":"CVE-2021-25313","to":"CVE-2021-31999","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/rancher/rancher","fromFixed":"2.4.14","toFixed":"2.4.16","daysApart":132}]}},{"cve":"CVE-2021-25318","published":"2021-07-15","fixed":"2.5.9","kev":false},{"cve":"CVE-2021-25320","published":"2021-07-15","fixed":"2.5.9","kev":false},{"cve":"CVE-2021-31999","published":"2021-07-15","fixed":"2.5.9","kev":false},{"cve":"CVE-2021-36776","published":"2022-04-01","fixed":"2.5.10","kev":false},{"cve":"CVE-2021-36775","published":"2022-04-01","fixed":"2.6.3","kev":false},{"cve":"CVE-2021-36778","published":"2022-05-02","fixed":"2.6.3","kev":false}],"package":"Go:github.com/rancher/rancher"}}