CVE-2012-3426: Keystone OpenStack Keystone Token Expiration Issues Vulnerability

MODERATE
Advisory Identifier: GHSA-xp97-6w7r-4cjc
Published
Advisory Summary

CVE-2012-3426 is a MODERATE openstack keystone token expiration issues vulnerability (General Security Weakness) affecting Keystone libraries in the PyPI ecosystem. The issue involves openstack keystone token expiration issues. Remediation is available by upgrading affected packages to version 8.0.0a0.

CVE-2012-3426 at a Glance

CVE Identifier CVE-2012-3426
GHSA Identifier GHSA-xp97-6w7r-4cjc
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Keystone
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2012-3426

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: 8.0.0a0
pip install Keystone>=8.0.0a0
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-2012-3426, 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 8.0.0a0), 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 General Security Weakness. 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 before 2012.1.1, as used in OpenStack Folsom before Folsom-1 and OpenStack Essex, does not properly implement token expiration, which allows remote authenticated users to bypass intended authorization restrictions by (1) creating new tokens through token chaining, (2) leveraging possession of a token for a disabled user account, or (3) leveraging possession of a token for an account with a changed password.

CVE-2012-3426 Affected Keystone Versions

1 component(s)
Fixed Versions:
8.0.0a0
Product / Package Ecosystem Affected Versions Fixed Version
Keystone
PyPI
< 8.0.0a0
8.0.0a0

References

NVD — CVE-2012-3426 NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-3426
Security Fix Commit FIX COMMIT
https://github.com/openstack/keystone/commit/375838cfceb88cacc312ff6564e64eb18ee6a355
Security Fix Commit FIX COMMIT
https://github.com/openstack/keystone/commit/628149b3dc6b58b91fd08e6ca8d91c728ccb8626
Security Fix Commit FIX COMMIT
https://github.com/openstack/keystone/commit/a67b24878a6156eab17b9098fa649f0279256f5d
bugs.launchpad.net/keystone/+bug/99659... WEB
https://bugs.launchpad.net/keystone/+bug/996595
bugs.launchpad.net/keystone/+bug/99719... WEB
https://bugs.launchpad.net/keystone/+bug/997194
bugs.launchpad.net/keystone/+bug/99818... WEB
https://bugs.launchpad.net/keystone/+bug/998185
Keystone Source Repository REPOSITORY
https://github.com/openstack/keystone
Keystone Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/keystone/PYSEC-2012-34.yaml
launchpad.net/keystone/essex/2012... WEB
https://launchpad.net/keystone/essex/2012.1.1/+download/keystone-2012.1.1.tar.gz
Security Fix Commit FIX COMMIT
http://github.com/openstack/keystone/commit/29e74e73a6e51cffc0371b32354558391826a4aa
Security Fix Commit FIX COMMIT
http://github.com/openstack/keystone/commit/375838cfceb88cacc312ff6564e64eb18ee6a355
Security Fix Commit FIX COMMIT
http://github.com/openstack/keystone/commit/628149b3dc6b58b91fd08e6ca8d91c728ccb8626
Security Fix Commit FIX COMMIT
http://github.com/openstack/keystone/commit/a67b24878a6156eab17b9098fa649f0279256f5d
Security Fix Commit FIX COMMIT
http://github.com/openstack/keystone/commit/d9600434da14976463a0bd03abd8e0309f0db454
Security Fix Commit FIX COMMIT
http://github.com/openstack/keystone/commit/ea03d05ed5de0c015042876100d37a6a14bf56de
Keystone Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/07/27/4
www.ubuntu.com/usn/usn-1552-1 WEB
http://www.ubuntu.com/usn/USN-1552-1

Frequently Asked Questions

What is CVE-2012-3426?
CVE-2012-3426 is a security vulnerability in Keystone involving OpenStack Keystone token expiration issues under General Security Weakness.
Which Keystone versions are affected?
Affected versions include releases prior to 8.0.0a0 across affected packages: Keystone.
What version fixes CVE-2012-3426?
Upgrading to 8.0.0a0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Keystone affected?
Yes, Keystone is affected in releases prior to 8.0.0a0. Upgrade your dependency to 8.0.0a0 or later.
What CWE is associated with CVE-2012-3426?
CVE-2012-3426 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2012-3426?
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-xp97-6w7r-4cjc",
  "modified" : "2024-11-22T17:53:36Z",
  "published" : "2022-05-17T05:23:24Z",
  "aliases" : [ "CVE-2012-3426" ],
  "summary" : "OpenStack Keystone token expiration issues",
  "details" : "OpenStack Keystone before 2012.1.1, as used in OpenStack Folsom before Folsom-1 and OpenStack Essex, does not properly implement token expiration, which allows remote authenticated users to bypass intended authorization restrictions by (1) creating new tokens through token chaining, (2) leveraging possession of a token for a disabled user account, or (3) leveraging possession of a token for an account with a changed password.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Keystone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.0.0a0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-3426"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystone/commit/375838cfceb88cacc312ff6564e64eb18ee6a355"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystone/commit/628149b3dc6b58b91fd08e6ca8d91c728ccb8626"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystone/commit/a67b24878a6156eab17b9098fa649f0279256f5d"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/keystone/+bug/996595"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/keystone/+bug/997194"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/keystone/+bug/998185"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/keystone"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/keystone/PYSEC-2012-34.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://launchpad.net/keystone/essex/2012.1.1/+download/keystone-2012.1.1.tar.gz"
  }, {
    "type" : "WEB",
    "url" : "http://github.com/openstack/keystone/commit/29e74e73a6e51cffc0371b32354558391826a4aa"
  }, {
    "type" : "WEB",
    "url" : "http://github.com/openstack/keystone/commit/375838cfceb88cacc312ff6564e64eb18ee6a355"
  }, {
    "type" : "WEB",
    "url" : "http://github.com/openstack/keystone/commit/628149b3dc6b58b91fd08e6ca8d91c728ccb8626"
  }, {
    "type" : "WEB",
    "url" : "http://github.com/openstack/keystone/commit/a67b24878a6156eab17b9098fa649f0279256f5d"
  }, {
    "type" : "WEB",
    "url" : "http://github.com/openstack/keystone/commit/d9600434da14976463a0bd03abd8e0309f0db454"
  }, {
    "type" : "WEB",
    "url" : "http://github.com/openstack/keystone/commit/ea03d05ed5de0c015042876100d37a6a14bf56de"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/07/27/4"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-1552-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-12T20:31:51Z",
    "nvd_published_at" : "2012-07-31T10:45:00Z"
  }
}