CVE-2012-5571
Openstack keystone: openstack keystone: authorization bypass via improper ec2 token handling
Check your servers for CVE-2012-5571
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2012-5571 affects openstack-keystone, with the command that installs the fix. The free plan covers one server and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity low, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 2.05%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 81.8% of all scored CVEs. Scores of 26 Nov 2026.
Weakness
- CWE-639 Authorization Bypass Through User-Controlled Key
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
OpenStack Essex for RHEL 6
package
openstack-keystone |
unaffected 0:2012.1.3-3.el6 and later
Other versions: affected
|
|
OpenStack Folsom for RHEL 6
package
openstack-keystone |
unaffected 0:2012.2.1-1.el6ost and later
Other versions: affected
|
|
Red Hat OpenStack Platform 13 (Queens)
package
redhat-user-workloads/openstack-keystone |
affected the record does not list versions
|
|
Red Hat OpenStack Platform 16.2
package
openstack-keystone |
affected the record does not list versions
|
|
Red Hat OpenStack Platform 16.2
package
redhat-user-workloads/openstack-keystone |
affected the record does not list versions
|
|
Red Hat OpenStack Platform 17.1
package
openstack-keystone |
affected the record does not list versions
|
|
Red Hat OpenStack Platform 17.1
package
redhat-user-workloads/openstack-keystone |
affected the record does not list versions
|
|
Red Hat OpenStack Platform 18.0
package
openstack-keystone |
affected the record does not list versions
|
|
Red Hat OpenStack Platform 18.0
package
redhat-user-workloads/openstack-keystone |
affected the record does not list versions
|
Is my server affected?
Find the installed version of openstack-keystone and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i openstack-keystone
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2012-5571 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2012-5571RHEL, Rocky, Alma, Fedora
rpm -q openstack-keystone
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2012-5571Alpine
apk list --installed | grep -i openstack-keystoneWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2012-5571
trivy image --scanners vuln IMAGE | grep CVE-2012-5571
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server or read how to install the agent.
References
Advisories
- http://lists.fedoraproject.org/pipermail/package-announce/2012-December/094286.html lists.fedoraproject.org · vendor advisory
- http://rhn.redhat.com/errata/RHSA-2012-1556.html rhn.redhat.com · vendor advisory
- http://rhn.redhat.com/errata/RHSA-2012-1557.html rhn.redhat.com · vendor advisory
- http://secunia.com/advisories/51423 secunia.com · third party advisory
- http://secunia.com/advisories/51436 secunia.com · third party advisory
- http://www.ubuntu.com/usn/USN-1641-1 ubuntu.com · vendor advisory
- RHSA-2012:1556 access.redhat.com · vendor advisory
- RHSA-2012:1557 access.redhat.com · vendor advisory
- https://access.redhat.com/security/cve/CVE-2012-5571 access.redhat.com · vdb entry
- https://bugs.launchpad.net/keystone/+bug/1064914 bugs.launchpad.net
- https://github.com/openstack/keystone/commit/37308dd4f3e33f7bd0f71d83fd51734d1870713b github.com
- https://github.com/openstack/keystone/commit/8735009dc5b895db265a1cd573f39f4acfca2a19 github.com
- https://github.com/openstack/keystone/commit/9d68b40cb9ea818c48152e6c712ff41586ad9653 github.com
Other references
- http://www.openwall.com/lists/oss-security/2012/11/28/5 openwall.com · mailing list
- http://www.openwall.com/lists/oss-security/2012/11/28/6 openwall.com · mailing list
- http://www.securityfocus.com/bid/56726 securityfocus.com · vdb entry
- https://exchange.xforce.ibmcloud.com/vulnerabilities/80333 exchange.xforce.ibmcloud.com · vdb entry
Source: the record CVE-2012-5571 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse