Vulnerabilities in pkg:pypi/Keystone
PACKAGECVE-2012-5571 is a MODERATE (CVSS 5.4) openstack keystone intended authorization restrictions vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Keystone libraries in the PyPI ecosystem. The issue involves openstack keystone intended authorization restrictions bypass. Remediation is available by upgrading affected packages to version 8.0.0a0.
pkg:pypi/Keystone
Vulnerability advisories affecting package pkg:pypi/Keystone. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-qvpr-qm6w-6rcc | CVE-2012-5571 | MODERATE | OpenStack Keystone intended authorization restrictions bypass |
| GHSA-xp97-6w7r-4cjc | CVE-2012-3426 | MODERATE | OpenStack Keystone token expiration issues |
| GHSA-8833-qrvm-wc3h | CVE-2013-0282 | MODERATE | OpenStack Keystone allows context-dependent attackers to bypass access restrictions |
| GHSA-x8h4-xf47-pqc3 | CVE-2012-4457 | MODERATE | OpenStack Keystone Token authorization for a user in a disabled tenant is allowed |
CVE-2012-5571 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2012-5571
To remediate this vulnerability, upgrade all affected Keystone dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install Keystone>=8.0.0a0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show Keystone
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2012-5571, inspect your installed packages using pip:
pip show Keystone
Analyze the terminal output to locate any version of Keystone in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.0.0a0), your application is affected.
Note: The pip show Keystone command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Keystone, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2012-5571 Affected Keystone Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Keystone
|
PyPI |
< 8.0.0a0
|
8.0.0a0
|
References
Frequently Asked Questions
What is CVE-2012-5571?
Which Keystone versions are affected?
What version fixes CVE-2012-5571?
Is Keystone affected?
What is the CVSS score of CVE-2012-5571?
What CWE is associated with CVE-2012-5571?
How can I check PyPI dependencies for CVE-2012-5571?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qvpr-qm6w-6rcc",
"modified" : "2026-06-10T19:01:45Z",
"published" : "2022-05-17T01:39:21Z",
"aliases" : [ "CVE-2012-5571" ],
"summary" : "OpenStack Keystone intended authorization restrictions bypass",
"details" : "OpenStack Keystone Essex (2012.1) and Folsom (2012.2) does not properly handle EC2 tokens when the user role has been removed from a tenant, which allows remote authenticated users to bypass intended authorization restrictions by leveraging a token for the removed user role.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Keystone"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.0.0a0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-5571"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/keystone/commit/37308dd4f3e33f7bd0f71d83fd51734d1870713b"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/keystone/commit/8735009dc5b895db265a1cd573f39f4acfca2a19"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/keystone/commit/9d68b40cb9ea818c48152e6c712ff41586ad9653"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2012-5571"
}, {
"type" : "WEB",
"url" : "https://bugs.launchpad.net/keystone/+bug/1064914"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/80333"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openstack/keystone"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/keystone/PYSEC-2012-35.yaml"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2012-December/094286.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2012-1556.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2012-1557.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2012/11/28/5"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2012/11/28/6"
}, {
"type" : "WEB",
"url" : "http://www.ubuntu.com/usn/USN-1641-1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-639" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-12T20:22:36Z",
"nvd_published_at" : "2012-12-18T01:55:00Z"
}
}