Vulnerabilities in pkg:pypi/Keystone

PACKAGE
Advisory Identifier: GHSA-qvpr-qm6w-6rcc
Advisory Summary

CVE-2012-5571 is a MODERATE (CVSS 5.4) openstack keystone intended authorization restrictions vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Keystone libraries in the PyPI ecosystem. The issue involves openstack keystone intended authorization restrictions bypass. Remediation is available by upgrading affected packages to version 8.0.0a0.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/Keystone

4 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/Keystone. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-qvpr-qm6w-6rcc CVE-2012-5571 MODERATE OpenStack Keystone intended authorization restrictions bypass
GHSA-xp97-6w7r-4cjc CVE-2012-3426 MODERATE OpenStack Keystone token expiration issues
GHSA-8833-qrvm-wc3h CVE-2013-0282 MODERATE OpenStack Keystone allows context-dependent attackers to bypass access restrictions
GHSA-x8h4-xf47-pqc3 CVE-2012-4457 MODERATE OpenStack Keystone Token authorization for a user in a disabled tenant is allowed

CVE-2012-5571 at a Glance

CVE Identifier CVE-2012-5571
GHSA Identifier GHSA-qvpr-qm6w-6rcc
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
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-2012-5571

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-5571, 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 CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. 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 Essex (2012.1) and Folsom (2012.2) does not properly handle EC2 tokens when the user role has been removed from a tenant, which allows remote authenticated users to bypass intended authorization restrictions by leveraging a token for the removed user role.

CVE-2012-5571 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-5571 NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-5571
Security Fix Commit FIX COMMIT
https://github.com/openstack/keystone/commit/37308dd4f3e33f7bd0f71d83fd51734d1870713b
Security Fix Commit FIX COMMIT
https://github.com/openstack/keystone/commit/8735009dc5b895db265a1cd573f39f4acfca2a19
Security Fix Commit FIX COMMIT
https://github.com/openstack/keystone/commit/9d68b40cb9ea818c48152e6c712ff41586ad9653
Keystone Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2012-5571
bugs.launchpad.net/keystone/+bug/10649... WEB
https://bugs.launchpad.net/keystone/+bug/1064914
exchange.xforce.ibmcloud.com/vulnerabilities/803... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/80333
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-35.yaml
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2012-December/094286.html
rhn.redhat.com/errata/rhsa-2012-15... WEB
http://rhn.redhat.com/errata/RHSA-2012-1556.html
rhn.redhat.com/errata/rhsa-2012-15... WEB
http://rhn.redhat.com/errata/RHSA-2012-1557.html
Keystone Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/11/28/5
Keystone Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/11/28/6
www.ubuntu.com/usn/usn-1641-1 WEB
http://www.ubuntu.com/usn/USN-1641-1

Frequently Asked Questions

What is CVE-2012-5571?
CVE-2012-5571 is a security vulnerability in Keystone involving OpenStack Keystone intended authorization restrictions bypass under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Keystone versions are affected?
Affected versions include releases prior to 8.0.0a0 across affected packages: Keystone.
What version fixes CVE-2012-5571?
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 is the CVSS score of CVE-2012-5571?
CVE-2012-5571 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-2012-5571?
CVE-2012-5571 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check PyPI dependencies for CVE-2012-5571?
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-qvpr-qm6w-6rcc",
  "modified" : "2026-06-10T19:01:45Z",
  "published" : "2022-05-17T01:39:21Z",
  "aliases" : [ "CVE-2012-5571" ],
  "summary" : "OpenStack Keystone intended authorization restrictions bypass",
  "details" : "OpenStack Keystone Essex (2012.1) and Folsom (2012.2) does not properly handle EC2 tokens when the user role has been removed from a tenant, which allows remote authenticated users to bypass intended authorization restrictions by leveraging a token for the removed user role.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "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-5571"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystone/commit/37308dd4f3e33f7bd0f71d83fd51734d1870713b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystone/commit/8735009dc5b895db265a1cd573f39f4acfca2a19"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystone/commit/9d68b40cb9ea818c48152e6c712ff41586ad9653"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2012-5571"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/keystone/+bug/1064914"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/80333"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/keystone"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/keystone/PYSEC-2012-35.yaml"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2012-December/094286.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2012-1556.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2012-1557.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/11/28/5"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/11/28/6"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-1641-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-12T20:22:36Z",
    "nvd_published_at" : "2012-12-18T01:55:00Z"
  }
}