CVE-2015-5162: Cinder Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-g2j5-7vgx-6xrx
CVSS 7.5
CWE-400
Published
Advisory Summary

CVE-2015-5162 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Cinder libraries in the PyPI ecosystem. The issue involves openstack cinder, glance, and nova contain uncontrolled resource consumption. Remediation is available by upgrading affected packages to version 7.0.2, 9.0.0, 14.0.0, 12.0.4.

CVE-2015-5162 at a Glance

CVE Identifier CVE-2015-5162
GHSA Identifier GHSA-g2j5-7vgx-6xrx
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Cinder
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.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

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

How to Fix CVE-2015-5162

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

cinder fixed: 7.0.2
pip install cinder>=7.0.2
cinder fixed: 9.0.0
pip install cinder>=9.0.0
glance fixed: 14.0.0
pip install glance>=14.0.0
nova fixed: 12.0.4
pip install nova>=12.0.4
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 cinder

How to Check if You Are Affected

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

pip show cinder

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Cinder, 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 image parser in OpenStack Cinder prior to 7.0.2, and 8.0.0 and above, prior to 9.0.0; Glance prior to 14.00; and Nova prior to 12.0.4 does not properly limit qemu-img calls, which might allow attackers to cause a denial of service (memory and disk consumption) via a crafted disk image. This issue is patched in Cinder 7.0.2 and 9.0.0; Glance 14.0.0; and Nova 12.0.4

CVE-2015-5162 Affected Cinder Versions

4 component(s)
Fixed Versions:
7.0.29.0.014.0.012.0.4
Product / Package Ecosystem Affected Versions Fixed Version
cinder
PyPI
< 7.0.2
7.0.2
cinder
PyPI
≥ 8.0.0
< 9.0.0
9.0.0
glance
PyPI
< 14.0.0
14.0.0
nova
PyPI
< 12.0.4
12.0.4

References

Frequently Asked Questions

What is CVE-2015-5162?
CVE-2015-5162 is a security vulnerability in Cinder involving OpenStack Cinder, Glance, and Nova contain Uncontrolled Resource Consumption under CWE-400: Uncontrolled Resource Consumption.
Which Cinder versions are affected?
Affected versions include releases prior to 7.0.2, 9.0.0, 14.0.0, 12.0.4 across affected packages: cinder, glance, nova.
What version fixes CVE-2015-5162?
Upgrading to 7.0.2, 9.0.0, 14.0.0, 12.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cinder affected?
Yes, cinder is affected in releases prior to 7.0.2, 9.0.0. Upgrade your dependency to 7.0.2, 9.0.0 or later.
Is glance affected?
Yes, glance is affected in releases prior to 14.0.0. Upgrade your dependency to 14.0.0 or later.
What is the CVSS score of CVE-2015-5162?
CVE-2015-5162 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2015-5162?
CVE-2015-5162 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check PyPI dependencies for CVE-2015-5162?
Run the dependency tree command: 'pip show cinder'. 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-g2j5-7vgx-6xrx",
  "modified" : "2023-02-03T23:20:49Z",
  "published" : "2022-05-14T03:59:07Z",
  "aliases" : [ "CVE-2015-5162" ],
  "summary" : "OpenStack Cinder, Glance, and Nova contain Uncontrolled Resource Consumption",
  "details" : "The image parser in OpenStack Cinder prior to 7.0.2, and 8.0.0 and above, prior to 9.0.0; Glance prior to 14.00; and Nova prior to 12.0.4 does not properly limit qemu-img calls, which might allow attackers to cause a denial of service (memory and disk consumption) via a crafted disk image. This issue is patched in Cinder 7.0.2 and 9.0.0; Glance 14.0.0; and Nova 12.0.4",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "cinder"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "cinder"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "9.0.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "glance"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.0.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nova"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "12.0.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-5162"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/cinder/commit/455b318ced717fb38dfe40014817d78fbc47dea5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/glance/commit/69a9b659fd48aa3c1f84fc7bc9ae236b6803d31f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/6bc37dcceca823998068167b49aec6def3112397"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2015-5162"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1268303"
  }, {
    "type" : "WEB",
    "url" : "https://launchpad.net/bugs/1449062"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-2923.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-2991.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2017-0153.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2017-0156.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2017-0165.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2017-0282.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2016/10/06/8"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/76849"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-03T23:20:49Z",
    "nvd_published_at" : "2016-10-07T14:59:00Z"
  }
}