CVE-2019-19687: Keystone OpenStack Keystone Credential Leakage Vulnerability

HIGH
Advisory Identifier: GHSA-2j23-fwqm-mgwr
CVSS 8.8
CWE-522
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2019-19687
GHSA Identifier GHSA-2j23-fwqm-mgwr
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product Keystone
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

keystone fixed: 15.0.1
pip install keystone>=15.0.1
keystone fixed: 16.0.1
pip install keystone>=16.0.1
Verify Direct and Transitive Dependencies

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

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.)

CVE-2019-19687 Affected Keystone Versions

2 component(s)
Fixed Versions:
15.0.116.0.1
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

NVD — CVE-2019-19687 NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-19687
Security Fix Commit FIX COMMIT
https://github.com/openstack/keystone/commit/17947516b0095c51da5cff94771247f2e7c44ee6
Security Fix Commit FIX COMMIT
https://github.com/openstack/keystone/commit/17c337dbdbfb9d548ad531c2ad0483c9bce5b98f
Security Fix Commit FIX COMMIT
https://github.com/openstack/keystone/commit/bd3f63787151183f4daa43578aa491856fefae5b
usn.ubuntu.com/4262-1 WEB
https://usn.ubuntu.com/4262-1
Keystone Security Information SECURITY
https://security.openstack.org/ossa/OSSA-2019-006.html
review.opendev.org/ WEB
https://review.opendev.org/#/c/697731
review.opendev.org/ WEB
https://review.opendev.org/#/c/697611
review.opendev.org/ WEB
https://review.opendev.org/#/c/697355
Keystone Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/keystone/PYSEC-2019-29.yaml
Keystone Source Repository REPOSITORY
https://github.com/openstack/keystone
git.openstack.org/cgit/openstack/keys... WEB
https://git.openstack.org/cgit/openstack/keystone/commit/?id=bd3f63787151183f4daa43578aa491856fefae5b
git.openstack.org/cgit/openstack/keys... WEB
https://git.openstack.org/cgit/openstack/keystone/commit/?id=17c337dbdbfb9d548ad531c2ad0483c9bce5b98f
git.openstack.org/cgit/openstack/keys... WEB
https://git.openstack.org/cgit/openstack/keystone/commit/?id=17947516b0095c51da5cff94771247f2e7c44ee6
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=1781470
bugs.launchpad.net/keystone/+bug/18550... WEB
https://bugs.launchpad.net/keystone/+bug/1855080
access.redhat.com/errata/rhsa-2019:43... WEB
https://access.redhat.com/errata/RHSA-2019:4358
Keystone Security Information SECURITY
http://www.openwall.com/lists/oss-security/2019/12/11/8

Frequently Asked Questions

What is CVE-2019-19687?
CVE-2019-19687 is a security vulnerability in Keystone involving OpenStack Keystone Credential Leakage under CWE-522: Insufficiently Protected Credentials.
Which Keystone versions are affected?
Affected versions include releases prior to 15.0.1, 16.0.1 across affected packages: keystone.
What version fixes CVE-2019-19687?
Upgrading to 15.0.1, 16.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is keystone affected?
Yes, keystone is affected in releases prior to 15.0.1, 16.0.1. Upgrade your dependency to 15.0.1, 16.0.1 or later.
What is the CVSS score of CVE-2019-19687?
CVE-2019-19687 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-19687?
CVE-2019-19687 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check PyPI dependencies for CVE-2019-19687?
Run the dependency tree command: 'pip show keystone'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}