CVE-2013-2255: Python keystoneclient Improper Certificate Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-qh2x-hpf9-cf2g
CVSS 5.9
CWE-295
Published
Advisory Summary

CVE-2013-2255 is a MODERATE (CVSS 5.9) improper certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting Python keystoneclient libraries in the PyPI ecosystem. The issue involves openstack keystone and other components vulnerable to improper certificate validation. Remediation is available by upgrading affected packages to version 0.4.0, 7.0.0a0, 8.0.0a0.

CVE-2013-2255 at a Glance

CVE Identifier CVE-2013-2255
GHSA Identifier GHSA-qh2x-hpf9-cf2g
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Python keystoneclient
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).

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

How to Fix CVE-2013-2255

To remediate this vulnerability, upgrade all affected Python keystoneclient dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

python-keystoneclient fixed: 0.4.0
pip install python-keystoneclient>=0.4.0
cinder fixed: 7.0.0a0
pip install cinder>=7.0.0a0
neutron fixed: 7.0.0a0
pip install neutron>=7.0.0a0
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 python-keystoneclient

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2013-2255, inspect your installed packages using pip:

pip show python-keystoneclient

Analyze the terminal output to locate any version of Python keystoneclient in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.0), your application is affected.

Note: The pip show python-keystoneclient command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Python keystoneclient, 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

HTTPSConnections in OpenStack Keystone 2013, OpenStack Compute 2013.1, and possibly other OpenStack components, fail to validate server-side SSL certificates.

CVE-2013-2255 Affected Python keystoneclient Versions

4 component(s)
Fixed Versions:
0.4.07.0.0a08.0.0a0
Product / Package Ecosystem Affected Versions Fixed Version
python-keystoneclient
PyPI
< 0.4.0
0.4.0
cinder
PyPI
< 7.0.0a0
7.0.0a0
neutron
PyPI
< 7.0.0a0
7.0.0a0
keystone
PyPI
< 8.0.0a0
8.0.0a0

References

Frequently Asked Questions

What is CVE-2013-2255?
CVE-2013-2255 is a security vulnerability in Python keystoneclient involving OpenStack Keystone and other components vulnerable to Improper Certificate Validation under CWE-295: Improper Certificate Validation.
Which Python keystoneclient versions are affected?
Affected versions include releases prior to 0.4.0, 7.0.0a0, 8.0.0a0 across affected packages: python-keystoneclient, cinder, neutron, keystone.
What version fixes CVE-2013-2255?
Upgrading to 0.4.0, 7.0.0a0, 8.0.0a0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is python-keystoneclient affected?
Yes, python-keystoneclient is affected in releases prior to 0.4.0. Upgrade your dependency to 0.4.0 or later.
Is cinder affected?
Yes, cinder is affected in releases prior to 7.0.0a0. Upgrade your dependency to 7.0.0a0 or later.
What is the CVSS score of CVE-2013-2255?
CVE-2013-2255 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2013-2255?
CVE-2013-2255 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check PyPI dependencies for CVE-2013-2255?
Run the dependency tree command: 'pip show python-keystoneclient'. 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-qh2x-hpf9-cf2g",
  "modified" : "2024-05-02T13:26:09Z",
  "published" : "2022-05-05T00:28:57Z",
  "aliases" : [ "CVE-2013-2255" ],
  "summary" : "OpenStack Keystone and other components vulnerable to Improper Certificate Validation",
  "details" : "HTTPSConnections in OpenStack Keystone 2013, OpenStack Compute 2013.1, and possibly other OpenStack components, fail to validate server-side SSL certificates.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "python-keystoneclient"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.4.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "cinder"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.0.0a0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "neutron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.0.0a0"
      } ]
    } ]
  }, {
    "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-2013-2255"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/cinder/commit/0f9652d92e175a1f7dc3c2a37ab444b8f189375a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/keystone/commit/5bd4c2984d329625a2a8442b316fa235dbb88a3d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/neutron/commit/7255e056092f034daaeb4246a812900645d46911"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/python-keystoneclient/commit/20e166fd8a943ee3f91ba362a47e9c14c7cc5f4c"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/cve-2013-2255"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/ossn/+bug/1188189"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-2255"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.suse.com/show_bug.cgi?id=CVE-2013-2255"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/85562"
  }, {
    "type" : "WEB",
    "url" : "https://security-tracker.debian.org/tracker/CVE-2013-2255"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200229073508/https://www.securityfocus.com/bid/61118"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-02T13:26:09Z",
    "nvd_published_at" : "2019-11-01T19:15:00Z"
  }
}