CVE-2019-19687: Keystone OpenStack Keystone Credential Leakage Vulnerability
HIGHCVE-2019-19687 is a HIGH (CVSS 8.8) openstack keystone credential leakage vulnerability (CWE-522: Insufficiently Protected Credentials) affecting Keystone libraries in the PyPI ecosystem. The issue involves openstack keystone credential leakage. Remediation is available by upgrading affected packages to version 15.0.1, 16.0.1.
CVE-2019-19687 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-2019-19687
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.1
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-2019-19687, 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-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. 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-2019-19687 Affected Keystone Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
keystone
|
PyPI |
≥ 15.0.0
< 15.0.1
All 1 versions
15.0.0
|
15.0.1
|
|
keystone
|
PyPI |
≥ 16.0.0
< 16.0.1
All 1 versions
16.0.0
|
16.0.1
|
References
Frequently Asked Questions
What is CVE-2019-19687?
Which Keystone versions are affected?
What version fixes CVE-2019-19687?
Is keystone affected?
What is the CVSS score of CVE-2019-19687?
What CWE is associated with CVE-2019-19687?
How can I check PyPI dependencies for CVE-2019-19687?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2j23-fwqm-mgwr",
"modified" : "2024-09-27T20:36:29Z",
"published" : "2022-05-24T17:02:55Z",
"aliases" : [ "CVE-2019-19687" ],
"summary" : "OpenStack Keystone Credential Leakage",
"details" : "OpenStack Keystone 15.0.0 and 16.0.0 is affected by Data Leakage in the list credentials API. Any user with a role on a project is able to list any credentials with the `/v3/credentials` API when `enforce_scope` is false. Users with a role on a project are able to view any other users' credentials, which could (for example) leak sign-on information for Time-based One Time Passwords (TOTP). Deployments with enforce_scope set to false are affected. (There will be a slight performance impact for the list credentials API once this issue is fixed.)",
"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" : "15.0.0"
}, {
"fixed" : "15.0.1"
} ]
} ],
"versions" : [ "15.0.0" ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "keystone"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "16.0.0"
}, {
"fixed" : "16.0.1"
} ]
} ],
"versions" : [ "16.0.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-19687"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/keystone/commit/17947516b0095c51da5cff94771247f2e7c44ee6"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/keystone/commit/17c337dbdbfb9d548ad531c2ad0483c9bce5b98f"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/keystone/commit/bd3f63787151183f4daa43578aa491856fefae5b"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/4262-1"
}, {
"type" : "WEB",
"url" : "https://security.openstack.org/ossa/OSSA-2019-006.html"
}, {
"type" : "WEB",
"url" : "https://review.opendev.org/#/c/697731"
}, {
"type" : "WEB",
"url" : "https://review.opendev.org/#/c/697611"
}, {
"type" : "WEB",
"url" : "https://review.opendev.org/#/c/697355"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/keystone/PYSEC-2019-29.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openstack/keystone"
}, {
"type" : "WEB",
"url" : "https://git.openstack.org/cgit/openstack/keystone/commit/?id=bd3f63787151183f4daa43578aa491856fefae5b"
}, {
"type" : "WEB",
"url" : "https://git.openstack.org/cgit/openstack/keystone/commit/?id=17c337dbdbfb9d548ad531c2ad0483c9bce5b98f"
}, {
"type" : "WEB",
"url" : "https://git.openstack.org/cgit/openstack/keystone/commit/?id=17947516b0095c51da5cff94771247f2e7c44ee6"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1781470"
}, {
"type" : "WEB",
"url" : "https://bugs.launchpad.net/keystone/+bug/1855080"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2019:4358"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2019/12/11/8"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-522" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-18T21:20:22Z",
"nvd_published_at" : "2019-12-09T18:15:00Z"
}
}