CVE-2016-2140: Nova OpenStack Nova Host Data Access Vulnerability

MODERATE
Advisory Identifier: GHSA-49jv-37hm-6gfp
CVSS 5.3
CWE-200
Published
Advisory Summary

CVE-2016-2140 is a MODERATE (CVSS 5.3) openstack nova host data access vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Nova libraries in the PyPI ecosystem. The issue involves openstack nova host data access through resize/migration. Remediation is available by upgrading affected packages to version 12.0.3.

CVE-2016-2140 at a Glance

CVE Identifier CVE-2016-2140
GHSA Identifier GHSA-49jv-37hm-6gfp
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Nova
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

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

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 None (I:N)
Availability None (A:N)

How to Fix CVE-2016-2140

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

nova fixed: 12.0.3
pip install nova>=12.0.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 nova

How to Check if You Are Affected

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

pip show nova

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Nova, 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 libvirt driver in OpenStack Compute (Nova) before 2015.1.4 (kilo) and 12.0.x before 12.0.3 (liberty), when using raw storage and use_cow_images is set to false, allows remote authenticated users to read arbitrary files via a crafted qcow2 header in an ephemeral or root disk.

CVE-2016-2140 Affected Nova Versions

1 component(s)
Fixed Versions:
12.0.3
Product / Package Ecosystem Affected Versions Fixed Version
nova
PyPI
≥ 12.0.0
< 12.0.3
12.0.3

References

Frequently Asked Questions

What is CVE-2016-2140?
CVE-2016-2140 is a security vulnerability in Nova involving OpenStack Nova host data access through resize/migration under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Nova versions are affected?
Affected versions include releases prior to 12.0.3 across affected packages: nova.
What version fixes CVE-2016-2140?
Upgrading to 12.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nova affected?
Yes, nova is affected in releases prior to 12.0.3. Upgrade your dependency to 12.0.3 or later.
What is the CVSS score of CVE-2016-2140?
CVE-2016-2140 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2016-2140?
CVE-2016-2140 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2016-2140?
Run the dependency tree command: 'pip show nova'. 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-49jv-37hm-6gfp",
  "modified" : "2024-05-14T21:13:54Z",
  "published" : "2022-05-14T01:58:44Z",
  "aliases" : [ "CVE-2016-2140" ],
  "summary" : "OpenStack Nova host data access through resize/migration",
  "details" : "The libvirt driver in OpenStack Compute (Nova) before 2015.1.4 (kilo) and 12.0.x before 12.0.3 (liberty), when using raw storage and use_cow_images is set to false, allows remote authenticated users to read arbitrary files via a crafted qcow2 header in an ephemeral or root disk.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nova"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.0.0"
      }, {
        "fixed" : "12.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-2140"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/0b194187db9da28225cb5e62be3b45aff5a1c793"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/116b1210ab772c55d1ed1f715687d83877c92701"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/f302bf04ab5dda89cf8ceaeed309006da90c0666"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:0363"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:0364"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:0365"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:0366"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2016-2140"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/nova/+bug/1548450"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1313454"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/nova"
  }, {
    "type" : "WEB",
    "url" : "https://security.openstack.org/ossa/OSSA-2016-007.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2016/q1/563"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2016/03/08/6"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/84277"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T21:13:54Z",
    "nvd_published_at" : "2016-04-12T14:59:00Z"
  }
}