{"id":"CVE-2012-5571","published":"2012-12-18T01:00:00Z","modified":"2026-10-30T18:03:41Z","title":"Openstack keystone: openstack keystone: authorization bypass via improper ec2 token handling","vendor":"Red Hat","product":"OpenStack Essex for RHEL 6","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02047,"percentile":0.81684,"provenance":"source"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"references":[{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-December/094286.html","tags":[]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-1556.html","tags":[]},{"url":"http://rhn.redhat.com/errata/RHSA-2012-1557.html","tags":[]},{"url":"http://secunia.com/advisories/51423","tags":[]},{"url":"http://secunia.com/advisories/51436","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2012/11/28/5","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2012/11/28/6","tags":[]},{"url":"http://www.securityfocus.com/bid/56726","tags":[]},{"url":"http://www.ubuntu.com/usn/USN-1641-1","tags":[]},{"url":"https://access.redhat.com/errata/RHSA-2012:1556","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2012:1557","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2012-5571","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugs.launchpad.net/keystone/+bug/1064914","tags":[]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/80333","tags":[]},{"url":"https://github.com/openstack/keystone/commit/37308dd4f3e33f7bd0f71d83fd51734d1870713b","tags":[]},{"url":"https://github.com/openstack/keystone/commit/8735009dc5b895db265a1cd573f39f4acfca2a19","tags":[]},{"url":"https://github.com/openstack/keystone/commit/9d68b40cb9ea818c48152e6c712ff41586ad9653","tags":[]}],"priority":{"score":20.1,"factors":[{"name":"EPSS percentile","points":16.34},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"OpenStack Essex for RHEL 6","versions":["all versions"]},{"vendor":"Red Hat","product":"OpenStack Folsom for RHEL 6","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 13 (Queens)","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 16.2","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 16.2","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 17.1","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 17.1","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 18.0","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 18.0","versions":["all versions"]}],"affected":[{"ecosystem":"PyPI","package":"Keystone","vulnerableRanges":["<8.0.0a0"],"patched":["8.0.0a0"],"from":["GHSA-qvpr-qm6w-6rcc"],"provenance":"source"}],"summary":{"text":"A flaw in Keystone, the identity service of Red Hat OpenStack Platform 13 (Queens), causes EC2-style tokens to be mishandled after a user's role has been removed from a tenant. An authenticated remote attacker who holds such a token can use it to gain access that the removed role should no longer permit, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:37Z"},"euvd":{"id":"EUVD-2012-0016","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-red-hat-openstack-essex-for-rhel-6-cve-2012-4413","children":[{"from":"CVE-2012-5571","to":"CVE-2013-0282","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["keystone/contrib/ec2/core.py"],"commits":["https://github.com/openstack/keystone/commit/37308dd4f3e33f7bd0f71d83fd51734d1870713b","https://github.com/openstack/keystone/commit/8735009dc5b895db265a1cd573f39f4acfca2a19","https://github.com/openstack/keystone/commit/7402f5ef994599653bdbb3ed5ff1a2b8c3e72b9f","https://github.com/openstack/keystone/commit/9572bfc393f66f5ce3b44c0a77a9e29cc0374c6f"],"basis":"shared function","functions":["authenticate"]},{"kind":"similar","provenance":"machine","score":0.44,"basis":"same package + description similarity"}]}]}}