CVE-2013-2104: Python keystoneclient Python-keystoneclient Missing Expiration Check Vulnerability

HIGH
Advisory Identifier: GHSA-4rrr-j7ff-r844
CVSS 7.5
CWE-324
Published
Advisory Summary

CVE-2013-2104 is a HIGH (CVSS 7.5) python-keystoneclient missing expiration check vulnerability (CWE-324: Use of a Key Past its Expiration Date) affecting Python keystoneclient libraries in the PyPI ecosystem. The issue involves python-keystoneclient missing expiration check in pki token validation. Remediation is available by upgrading affected packages to version 0.2.4.

CVE-2013-2104 at a Glance

CVE Identifier CVE-2013-2104
GHSA Identifier GHSA-4rrr-j7ff-r844
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-324: Use of a Key Past its Expiration Date
Affected Product Python keystoneclient
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2013-2104

To remediate this vulnerability, upgrade all affected Python keystoneclient dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

python-keystoneclient fixed: 0.2.4
pip install python-keystoneclient>=0.2.4
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 python-keystoneclient

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2013-2104, inspect your installed packages using pip:

pip show python-keystoneclient

Analyze the terminal output to locate any version of Python keystoneclient in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.4), your application is affected.

Note: The pip show python-keystoneclient command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-324: Use of a Key Past its Expiration Date, where the product uses a cryptographic key or password past its expiration date, which diminishes its safety significantly by increasing the timing window for cracking attacks against that key. In Python keystoneclient, 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

python-keystoneclient before 0.2.4, as used in OpenStack Keystone (Folsom), does not properly check expiry for PKI tokens, which allows remote authenticated users to (1) retain use of a token after it has expired, or (2) use a revoked token once it expires.

CVE-2013-2104 Affected Python keystoneclient Versions

1 component(s)
Fixed Versions:
0.2.4
Product / Package Ecosystem Affected Versions Fixed Version
python-keystoneclient
PyPI
< 0.2.4
0.2.4

References

Frequently Asked Questions

What is CVE-2013-2104?
CVE-2013-2104 is a security vulnerability in Python keystoneclient involving python-keystoneclient missing expiration check in PKI token validation under CWE-324: Use of a Key Past its Expiration Date.
Which Python keystoneclient versions are affected?
Affected versions include releases prior to 0.2.4 across affected packages: python-keystoneclient.
What version fixes CVE-2013-2104?
Upgrading to 0.2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is python-keystoneclient affected?
Yes, python-keystoneclient is affected in releases prior to 0.2.4. Upgrade your dependency to 0.2.4 or later.
What is the CVSS score of CVE-2013-2104?
CVE-2013-2104 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2013-2104?
CVE-2013-2104 is classified under CWE-324: Use of a Key Past its Expiration Date (The product uses a cryptographic key or password past its expiration date, which diminishes its safety significantly by increasing the timing window for cracking attacks against that key.).
How can I check PyPI dependencies for CVE-2013-2104?
Run the dependency tree command: 'pip show python-keystoneclient'. 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-4rrr-j7ff-r844",
  "modified" : "2024-10-25T21:14:44Z",
  "published" : "2022-05-17T04:54:13Z",
  "aliases" : [ "CVE-2013-2104" ],
  "summary" : "python-keystoneclient missing expiration check in PKI token validation ",
  "details" : "python-keystoneclient before 0.2.4, as used in OpenStack Keystone (Folsom), does not properly check expiry for PKI tokens, which allows remote authenticated users to (1) retain use of a token after it has expired, or (2) use a revoked token once it expires.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "python-keystoneclient"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.2.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-2104"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2013:0944"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2013-2104"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/python-keystoneclient/+bug/1179615"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=965852"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/python-keystoneclient"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/python-keystoneclient/PYSEC-2014-69.yaml"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2013-06/msg00198.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2013-0944.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2013/05/28/7"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-1851-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-1875-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-324" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-29T18:28:22Z",
    "nvd_published_at" : "2014-01-21T18:55:00Z"
  }
}