CVE-2020-12690: Keystone Insufficient Session Expiration Vulnerability
HIGHCVE-2020-12690 is a HIGH (CVSS 8.8) insufficient session expiration vulnerability (CWE-613: Insufficient Session Expiration) affecting Keystone libraries in the PyPI ecosystem. The issue involves insufficient session expiration in openstack keystone. Remediation is available by upgrading affected packages to version 15.0.1, 16.0.0.
CVE-2020-12690 at a Glance
Security Impact
CVSS: 8.8
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:H/I:H/A:H).
How to Fix CVE-2020-12690
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>=15.0.1
pip install keystone>=16.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-2020-12690, 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 15.0.1), 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-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". 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-2020-12690 Affected Keystone Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
keystone
|
PyPI |
< 15.0.1
|
15.0.1
|
|
keystone
|
PyPI |
≥ 16.0.0.0rc1
< 16.0.0
|
16.0.0
|
References
Frequently Asked Questions
What is CVE-2020-12690?
Which Keystone versions are affected?
What version fixes CVE-2020-12690?
Is keystone affected?
What is the CVSS score of CVE-2020-12690?
What CWE is associated with CVE-2020-12690?
How can I check PyPI dependencies for CVE-2020-12690?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6m8p-x4qw-gh5j",
"modified" : "2024-09-27T18:26:15Z",
"published" : "2021-06-09T17:34:09Z",
"aliases" : [ "CVE-2020-12690" ],
"summary" : "Insufficient Session Expiration in OpenStack Keystone",
"details" : "An issue was discovered in OpenStack Keystone before 15.0.1, and 16.0.0. The list of roles provided for an OAuth1 access token is silently ignored. Thus, when an access token is used to request a keystone token, the keystone token contains every role assignment the creator had for the project. This results in the provided keystone token having more role assignments than the creator intended, possibly giving unintended escalated access.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "keystone"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "15.0.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "keystone"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "16.0.0.0rc1"
}, {
"fixed" : "16.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-12690"
}, {
"type" : "WEB",
"url" : "https://bugs.launchpad.net/keystone/+bug/1873290"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-6m8p-x4qw-gh5j"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openstack/keystone"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/keystone/PYSEC-2020-54.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/re4ffc55cd2f1b55a26e07c83b3c22c3fe4bae6054d000a57fb48d8c2@%3Ccommits.druid.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://security.openstack.org/ossa/OSSA-2020-005.html"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/4480-1"
}, {
"type" : "WEB",
"url" : "https://www.openwall.com/lists/oss-security/2020/05/06/6"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2020/05/07/3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-613" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-25T21:08:40Z",
"nvd_published_at" : "2020-05-07T00:15:00Z"
}
}