CVE-2012-5571 · redhat
Openstack keystone: openstack keystone: authorization bypass via improper ec2 token handling
A flaw was found in OpenStack Keystone. This vulnerability allows remote authenticated users to bypass intended authorization restrictions. This occurs because OpenStack Keystone does not properly handle EC2 (Elastic Compute Cloud) tokens when a user's role has been removed from a tenant. An attacker can leverage a token associated with a removed user role to gain unauthorized access.
Published 2012-12-18, last changed 2026-10-30. Weakness: CWE-639, CWE-255.
How to fix
Upgrade to a fixed version: keystone 8.0.0a0 (PyPI). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in openstack/keystone by 37308dd4f3, 8735009dc5, 9d68b40cb9. Functions changed by the fix: authenticate. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2012-12-18 | Published |
| 2012-12-18 | Package advisory PYSEC-2012-35 |
| 2022-05-17 | Package advisory GHSA-qvpr-qm6w-6rcc |
| 2026-10-30 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 2.05% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-qvpr-qm6w-6rcc | keystone (PyPI) | 8.0.0a0 |
| PYSEC-2012-35 (withdrawn) | keystone (PyPI) | no fix yet |
Also known as: GHSA-qvpr-qm6w-6rcc, PYSEC-2012-35
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-44394 | 2026-05-28 | 8.1 | same package: keystone (PyPI) |
| CVE-2026-43000 | 2026-05-28 | 8.8 | same package: keystone (PyPI) |
| CVE-2026-42999 | 2026-05-28 | 8.8 | same package: keystone (PyPI) |
| CVE-2026-42998 | 2026-05-28 | 8.8 | same package: keystone (PyPI) |
| CVE-2026-43001 | 2026-05-01 | 8 | same package: keystone (PyPI) |
| CVE-2026-40683 | 2026-04-14 | 7.7 | same package: keystone (PyPI) |
| CVE-2026-33551 | 2026-04-10 | 5.3 | same package: keystone (PyPI) |
| CVE-2025-65073 | 2025-11-17 | 7.5 | same package: keystone (PyPI) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2012-5571, or call /api/v1/vulnerabilities/CVE-2012-5571. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.