CVE-2012-5563: Keystone OpenStack Keystone Insufficient Token Expiration Vulnerability
HIGHCVE-2012-5563 is a HIGH (CVSS 5.9) openstack keystone insufficient token expiration vulnerability (CWE-863: Incorrect Authorization) affecting Keystone libraries in the PyPI ecosystem. The issue involves openstack keystone insufficient token expiration. Remediation is available by upgrading affected packages to version 8.0.0.
CVE-2012-5563 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2012-5563
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.0
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-5563, 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.0), 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. 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-5563 Affected Keystone Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
keystone
|
PyPI |
< 8.0.0
|
8.0.0
|
References
Frequently Asked Questions
What is CVE-2012-5563?
Which Keystone versions are affected?
What version fixes CVE-2012-5563?
Is keystone affected?
What is the CVSS score of CVE-2012-5563?
What CWE is associated with CVE-2012-5563?
How can I check PyPI dependencies for CVE-2012-5563?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w66p-78g4-mr7g",
"modified" : "2024-09-27T18:07:52Z",
"published" : "2022-05-17T01:39:21Z",
"aliases" : [ "CVE-2012-5563" ],
"summary" : "OpenStack Keystone Insufficient token expiration",
"details" : "OpenStack Keystone, as used in OpenStack Folsom 2012.2, does not properly implement token expiration, which allows remote authenticated users to bypass intended authorization restrictions by creating new tokens through token chaining. NOTE: this issue exists because of a CVE-2012-3426 regression.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "keystone"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-5563"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/keystone/commit/38c7e46a640a94da4da89a39a5a1ea9c081f1eb5"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/keystone/commit/f9d4766249a72d8f88d75dcf1575b28dd3496681"
}, {
"type" : "WEB",
"url" : "https://bugs.launchpad.net/keystone/+bug/1079216"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/80370"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openstack/keystone"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/keystone/PYSEC-2012-20.yaml"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20121201003009/http://secunia.com/advisories/51423"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20140802122732/http://secunia.com/advisories/51436"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200228144943/http://www.securityfocus.com/bid/56727"
}, {
"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-324", "CWE-863" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-14T00:53:23Z",
"nvd_published_at" : "2012-12-18T01:55:00Z"
}
}