CVE-2020-12692: Keystone OpenStack Keystone Does Not Check Vulnerability

MODERATE
Advisory Identifier: GHSA-rqw2-hhrf-7936
CVSS 5.4
CWE-311 CWE-347
Published
Advisory Summary

CVE-2020-12692 is a MODERATE (CVSS 5.4) openstack keystone does not check vulnerability (CWE-311: Missing Encryption of Sensitive Data) affecting Keystone libraries in the PyPI ecosystem. The issue involves openstack keystone does not check signature ttl of the ec2 credential auth method. Remediation is available by upgrading affected packages to version 16.0.0, 15.0.1.

CVE-2020-12692 at a Glance

CVE Identifier CVE-2020-12692
GHSA Identifier GHSA-rqw2-hhrf-7936
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-311: Missing Encryption of Sensitive Data
Affected Product Keystone
Package Ecosystem PyPI
Published Date
Last Updated

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

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 Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2020-12692

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: 16.0.0
pip install keystone>=16.0.0
keystone fixed: 15.0.1
pip install keystone>=15.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-2020-12692, 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 16.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-311: Missing Encryption of Sensitive Data, where the product does not encrypt sensitive or critical information before storage or transmission. 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

An issue was discovered in OpenStack Keystone before 15.0.1, and 16.0.0. The EC2 API doesn't have a signature TTL check for AWS Signature V4. An attacker can sniff the Authorization header, and then use it to reissue an OpenStack token an unlimited number of times.

CVE-2020-12692 Affected Keystone Versions

2 component(s)
Fixed Versions:
16.0.015.0.1
Product / Package Ecosystem Affected Versions Fixed Version
keystone
PyPI
≥ 16.0.0.0rc1
< 16.0.0
16.0.0
keystone
PyPI
< 15.0.1
15.0.1

References

Frequently Asked Questions

What is CVE-2020-12692?
CVE-2020-12692 is a security vulnerability in Keystone involving OpenStack Keystone does not check signature TTL of the EC2 credential auth method under CWE-311: Missing Encryption of Sensitive Data.
Which Keystone versions are affected?
Affected versions include releases prior to 16.0.0, 15.0.1 across affected packages: keystone.
What version fixes CVE-2020-12692?
Upgrading to 16.0.0, 15.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 16.0.0, 15.0.1. Upgrade your dependency to 16.0.0, 15.0.1 or later.
What is the CVSS score of CVE-2020-12692?
CVE-2020-12692 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2020-12692?
CVE-2020-12692 is classified under CWE-311: Missing Encryption of Sensitive Data (The product does not encrypt sensitive or critical information before storage or transmission.).
How can I check PyPI dependencies for CVE-2020-12692?
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-rqw2-hhrf-7936",
  "modified" : "2024-09-27T21:21:47Z",
  "published" : "2022-05-24T17:17:23Z",
  "aliases" : [ "CVE-2020-12692" ],
  "summary" : "OpenStack Keystone does not check signature TTL of the EC2 credential auth method",
  "details" : "An issue was discovered in OpenStack Keystone before 15.0.1, and 16.0.0. The EC2 API doesn't have a signature TTL check for AWS Signature V4. An attacker can sniff the Authorization header, and then use it to reissue an OpenStack token an unlimited number of times.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "keystone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.0.0.0rc1"
      }, {
        "fixed" : "16.0.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "keystone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "15.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-12692"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/keystone/+bug/1872737"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/keystone"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/keystone/PYSEC-2020-56.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://opendev.org/openstack/keystone/commit/ab89ea749013e7f2c46260f68504f5687763e019"
  }, {
    "type" : "WEB",
    "url" : "https://security.openstack.org/ossa/OSSA-2020-003.html"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/4480-1"
  }, {
    "type" : "WEB",
    "url" : "https://www.openwall.com/lists/oss-security/2020/05/06/4"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2020/05/07/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-311", "CWE-347" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-13T17:10:16Z",
    "nvd_published_at" : "2020-05-07T00:15:00Z"
  }
}