Vulnerabilities in pkg:pypi/keystonemiddleware

PACKAGE
Advisory Identifier: GHSA-8c4w-v65p-jvcv
Advisory Summary

CVE-2015-7546 is a HIGH (CVSS 7.5) openstack identity keystone and keystonemiddleware vulnerability (CWE-522: Insufficiently Protected Credentials) affecting Keystone libraries in the PyPI ecosystem. The issue involves openstack identity keystone and keystonemiddleware insufficiently protected credentials. Remediation is available by upgrading affected packages to version 9.0.0.0b2, 4.1.0, 8.1.0, 1.5.4, 2.3.3.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/keystonemiddleware

3 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-8c4w-v65p-jvcv CVE-2015-7546 HIGH OpenStack Identity Keystone and keystonemiddleware Insufficiently Protected Credentials
GHSA-7f2c-vp52-gmfw CVE-2014-7144 HIGH OpenStack keystonemiddleware does not verify certificate
GHSA-p9wq-mjh8-q72m CVE-2015-1852 HIGH OpenStack keystonemiddleware and python-keystoneclient vulnerable to man-in-the-middle attacks

CVE-2015-7546 at a Glance

CVE Identifier CVE-2015-7546
GHSA Identifier GHSA-8c4w-v65p-jvcv
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product Keystone
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:H/PR:L/UI:N/S:U/C:H/I:H/A:H).

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

How to Fix CVE-2015-7546

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: 9.0.0.0b2
pip install keystone>=9.0.0.0b2
keystonemiddleware fixed: 4.1.0
pip install keystonemiddleware>=4.1.0
keystone fixed: 8.1.0
pip install keystone>=8.1.0
keystonemiddleware fixed: 1.5.4
pip install keystonemiddleware>=1.5.4
keystonemiddleware fixed: 2.3.3
pip install keystonemiddleware>=2.3.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-2015-7546, 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 9.0.0.0b2), 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-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. 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 identity service in OpenStack Identity (Keystone) before 2015.1.3 (Kilo) and 8.0.x before 8.0.2 (Liberty) and keystonemiddleware (formerly python-keystoneclient) before 1.5.4 (Kilo) and Liberty before 2.3.3 does not properly invalidate authorization tokens when using the PKI or PKIZ token providers, which allows remote authenticated users to bypass intended access restrictions and gain access to cloud resources by manipulating byte fields within a revoked token.

CVE-2015-7546 Affected Keystone Versions

5 component(s)
Fixed Versions:
9.0.0.0b24.1.08.1.01.5.42.3.3
Product / Package Ecosystem Affected Versions Fixed Version
keystone
PyPI
≥ 9.0.0.0b1
< 9.0.0.0b2
9.0.0.0b2
keystonemiddleware
PyPI
≥ 2.4.0
< 4.1.0
4.1.0
keystone
PyPI
≥ 8.0
< 8.1.0
8.1.0
keystonemiddleware
PyPI
< 1.5.4
1.5.4
keystonemiddleware
PyPI
≥ 1.6.0
< 2.3.3
2.3.3

References

Frequently Asked Questions

What is CVE-2015-7546?
CVE-2015-7546 is a security vulnerability in Keystone involving OpenStack Identity Keystone and keystonemiddleware Insufficiently Protected Credentials under CWE-522: Insufficiently Protected Credentials.
Which Keystone versions are affected?
Affected versions include releases prior to 9.0.0.0b2, 4.1.0, 8.1.0, 1.5.4, 2.3.3 across affected packages: keystone, keystonemiddleware.
What version fixes CVE-2015-7546?
Upgrading to 9.0.0.0b2, 4.1.0, 8.1.0, 1.5.4, 2.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is keystone affected?
Yes, keystone is affected in releases prior to 9.0.0.0b2, 8.1.0. Upgrade your dependency to 9.0.0.0b2, 8.1.0 or later.
Is keystonemiddleware affected?
Yes, keystonemiddleware is affected in releases prior to 4.1.0, 1.5.4, 2.3.3. Upgrade your dependency to 4.1.0, 1.5.4, 2.3.3 or later.
What is the CVSS score of CVE-2015-7546?
CVE-2015-7546 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2015-7546?
CVE-2015-7546 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check PyPI dependencies for CVE-2015-7546?
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-8c4w-v65p-jvcv",
  "modified" : "2024-09-27T21:16:02Z",
  "published" : "2022-05-13T01:26:10Z",
  "aliases" : [ "CVE-2015-7546" ],
  "summary" : "OpenStack Identity Keystone and keystonemiddleware Insufficiently Protected Credentials",
  "details" : "The identity service in OpenStack Identity (Keystone) before 2015.1.3 (Kilo) and 8.0.x before 8.0.2 (Liberty) and keystonemiddleware (formerly python-keystoneclient) before 1.5.4 (Kilo) and Liberty before 2.3.3 does not properly invalidate authorization tokens when using the PKI or PKIZ token providers, which allows remote authenticated users to bypass intended access restrictions and gain access to cloud resources by manipulating byte fields within a revoked token.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "keystone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0.0b1"
      }, {
        "fixed" : "9.0.0.0b2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "keystonemiddleware"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0"
      }, {
        "fixed" : "4.1.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "keystone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0"
      }, {
        "fixed" : "8.1.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "keystonemiddleware"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "keystonemiddleware"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.6.0"
      }, {
        "fixed" : "2.3.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-7546"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystone/commit/bff03b5726fe5cac93d44a66715eea49b89c8cb0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystone/commit/d5378f173da14a34ca010271477337879002d6d0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystonemiddleware/commit/96ab58e6863c92575ada57615b19652e502adfd8"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/keystone/+bug/1490804"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/keystonemiddleware/PYSEC-2016-20.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://security.openstack.org/ossa/OSSA-2016-005.html"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228002640/http://www.securityfocus.com/bid/80498"
  }, {
    "type" : "WEB",
    "url" : "https://wiki.openstack.org/wiki/OSSN/OSSN-0062"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-522" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-29T16:17:23Z",
    "nvd_published_at" : "2016-02-03T18:59:00Z"
  }
}