CVE-2012-4456: Keystone OpenStack Keystone Improper Authentication Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-mf98-r2gf-2x3w
CWE-287
Published
Advisory Summary

CVE-2012-4456 is a HIGH openstack keystone improper authentication vulnerability vulnerability (CWE-287: Improper Authentication) affecting Keystone libraries in the PyPI ecosystem. The issue involves openstack keystone improper authentication vulnerability. Remediation is available by upgrading affected packages to version 2012.1.2.

CVE-2012-4456 at a Glance

CVE Identifier CVE-2012-4456
GHSA Identifier GHSA-mf98-r2gf-2x3w
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-287: Improper Authentication
Affected Product Keystone
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2012-4456

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.2
pip install keystone>=2012.1.2
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-4456, 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.2), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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

The (1) OS-KSADM/services and (2) tenant APIs in OpenStack Keystone Essex before 2012.1.2 and Folsom before folsom-2 do not properly validate X-Auth-Token, which allow remote attackers to read the roles for an arbitrary user or get, create, or delete arbitrary services.

CVE-2012-4456 Affected Keystone Versions

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

References

NVD — CVE-2012-4456 NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-4456
Security Fix Commit FIX COMMIT
https://github.com/openstack/keystone/commit/14b136aed9d988f5a8f3e699bd4577c9b874d6c1
Security Fix Commit FIX COMMIT
https://github.com/openstack/keystone/commit/1d146f5c32e58a73a677d308370f147a3271c2cb
Security Fix Commit FIX COMMIT
https://github.com/openstack/keystone/commit/24df3adb3f50cbb5ada411bc67aba8a781e6a431
Security Fix Commit FIX COMMIT
https://github.com/openstack/keystone/commit/868054992faa45d6f42d822bf1588cb88d7c9ccb
access.redhat.com/errata/rhsa-2012:13... WEB
https://access.redhat.com/errata/RHSA-2012:1378
Keystone Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2012-4456
bugs.launchpad.net/keystone/+bug/10068... WEB
https://bugs.launchpad.net/keystone/+bug/1006815
bugs.launchpad.net/keystone/+bug/10068... WEB
https://bugs.launchpad.net/keystone/+bug/1006822
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=861179
exchange.xforce.ibmcloud.com/vulnerabilities/789... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/78944
Keystone Source Repository REPOSITORY
https://github.com/openstack/keystone
lists.launchpad.net/openstack/msg17034.... WEB
https://lists.launchpad.net/openstack/msg17034.html
Keystone Security Information SECURITY
https://web.archive.org/web/20121114024512/http://www.securityfocus.com/bid/55716
Keystone Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/09/28/5

Frequently Asked Questions

What is CVE-2012-4456?
CVE-2012-4456 is a security vulnerability in Keystone involving OpenStack Keystone Improper Authentication vulnerability under CWE-287: Improper Authentication.
Which Keystone versions are affected?
Affected versions include releases prior to 2012.1.2 across affected packages: keystone.
What version fixes CVE-2012-4456?
Upgrading to 2012.1.2 (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.2. Upgrade your dependency to 2012.1.2 or later.
What CWE is associated with CVE-2012-4456?
CVE-2012-4456 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check PyPI dependencies for CVE-2012-4456?
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-mf98-r2gf-2x3w",
  "modified" : "2023-02-08T18:06:46Z",
  "published" : "2022-05-14T01:58:49Z",
  "aliases" : [ "CVE-2012-4456" ],
  "summary" : "OpenStack Keystone Improper Authentication vulnerability",
  "details" : "The (1) OS-KSADM/services and (2) tenant APIs in OpenStack Keystone Essex before 2012.1.2 and Folsom before folsom-2 do not properly validate X-Auth-Token, which allow remote attackers to read the roles for an arbitrary user or get, create, or delete arbitrary services.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "keystone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2012.1"
      }, {
        "fixed" : "2012.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-4456"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystone/commit/14b136aed9d988f5a8f3e699bd4577c9b874d6c1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystone/commit/1d146f5c32e58a73a677d308370f147a3271c2cb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystone/commit/24df3adb3f50cbb5ada411bc67aba8a781e6a431"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystone/commit/868054992faa45d6f42d822bf1588cb88d7c9ccb"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2012:1378"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2012-4456"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/keystone/+bug/1006815"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/keystone/+bug/1006822"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=861179"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/78944"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/keystone"
  }, {
    "type" : "WEB",
    "url" : "https://lists.launchpad.net/openstack/msg17034.html"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20121114024512/http://www.securityfocus.com/bid/55716"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/09/28/5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-08T18:06:46Z",
    "nvd_published_at" : "2012-10-09T15:55:00Z"
  }
}