CVE-2012-4413: Keystone OpenStack Keystone Does Not Invalidate Vulnerability

MODERATE
Advisory Identifier: GHSA-mrxv-65rv-6hxq
Published
Advisory Summary

CVE-2012-4413 is a MODERATE openstack keystone does not invalidate vulnerability (General Security Weakness) affecting Keystone libraries in the PyPI ecosystem. The issue involves openstack keystone does not invalidate existing tokens when granting or revoking roles. Remediation is available by upgrading affected packages to version 2012.1.3.

CVE-2012-4413 at a Glance

CVE Identifier CVE-2012-4413
GHSA Identifier GHSA-mrxv-65rv-6hxq
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-4413

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: 2012.1.3
pip install keystone>=2012.1.3
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-4413, 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 2012.1.3), 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.3 does not invalidate existing tokens when granting or revoking roles, which allows remote authenticated users to retain the privileges of the revoked roles.

CVE-2012-4413 Affected Keystone Versions

1 component(s)
Fixed Versions:
2012.1.3
Product / Package Ecosystem Affected Versions Fixed Version
keystone
PyPI
< 2012.1.3
2012.1.3

References

Frequently Asked Questions

What is CVE-2012-4413?
CVE-2012-4413 is a security vulnerability in Keystone involving OpenStack Keystone does not invalidate existing tokens when granting or revoking roles under General Security Weakness.
Which Keystone versions are affected?
Affected versions include releases prior to 2012.1.3 across affected packages: keystone.
What version fixes CVE-2012-4413?
Upgrading to 2012.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is keystone affected?
Yes, keystone is affected in releases prior to 2012.1.3. Upgrade your dependency to 2012.1.3 or later.
What CWE is associated with CVE-2012-4413?
CVE-2012-4413 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2012-4413?
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-mrxv-65rv-6hxq",
  "modified" : "2023-02-08T17:55:57Z",
  "published" : "2022-05-17T01:42:10Z",
  "aliases" : [ "CVE-2012-4413" ],
  "summary" : "OpenStack Keystone does not invalidate existing tokens when granting or revoking roles",
  "details" : "OpenStack Keystone before 2012.1.3 does not invalidate existing tokens when granting or revoking roles, which allows remote authenticated users to retain the privileges of the revoked roles.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "keystone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2012.1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-4413"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2012:1378"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2012-4413"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/keystone/+bug/1041396"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=855491"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/78478"
  }, {
    "type" : "PACKAGE",
    "url" : "https://opendev.org/openstack/keystone"
  }, {
    "type" : "WEB",
    "url" : "https://review.opendev.org/c/openstack/keystone/+/12870"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20121114023848/http://www.securityfocus.com/bid/55524"
  }, {
    "type" : "WEB",
    "url" : "http://github.com/openstack/keystone/commit/58ac6691a21675be9e2ffb0f84a05fc3cd4d2e2e"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/09/12/7"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-1564-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-08T17:55:57Z",
    "nvd_published_at" : "2012-09-18T17:55:00Z"
  }
}