CVE-2012-2654: Nova OpenStack Compute (Nova) Improper Input Vulnerability

MODERATE
Advisory Identifier: GHSA-46r8-9cj7-pw6g
CWE-20
Published
Advisory Summary

CVE-2012-2654 is a MODERATE openstack compute (nova) improper input vulnerability (CWE-20: Improper Input Validation) affecting Nova libraries in the PyPI ecosystem. The issue involves openstack compute (nova) improper input validation. Remediation is available by upgrading affected packages to version 12.0.0a0.

CVE-2012-2654 at a Glance

CVE Identifier CVE-2012-2654
GHSA Identifier GHSA-46r8-9cj7-pw6g
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Nova
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2012-2654

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.0a0
pip install nova>=12.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 nova

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2012-2654, 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.0a0), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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 (1) EC2 and (2) OS APIs in OpenStack Compute (Nova) Folsom (2012.2), Essex (2012.1), and Diablo (2011.3) do not properly check the protocol when security groups are created and the network protocol is not specified entirely in lowercase, which allows remote attackers to bypass intended access restrictions.

CVE-2012-2654 Affected Nova Versions

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

References

Frequently Asked Questions

What is CVE-2012-2654?
CVE-2012-2654 is a security vulnerability in Nova involving OpenStack Compute (Nova) Improper Input Validation under CWE-20: Improper Input Validation.
Which Nova versions are affected?
Affected versions include releases prior to 12.0.0a0 across affected packages: nova.
What version fixes CVE-2012-2654?
Upgrading to 12.0.0a0 (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.0a0. Upgrade your dependency to 12.0.0a0 or later.
What CWE is associated with CVE-2012-2654?
CVE-2012-2654 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check PyPI dependencies for CVE-2012-2654?
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-46r8-9cj7-pw6g",
  "modified" : "2024-11-22T18:03:50Z",
  "published" : "2022-05-17T01:45:47Z",
  "aliases" : [ "CVE-2012-2654" ],
  "summary" : "OpenStack Compute (Nova) Improper Input Validation",
  "details" : "The (1) EC2 and (2) OS APIs in OpenStack Compute (Nova) Folsom (2012.2), Essex (2012.1), and Diablo (2011.3) do not properly check the protocol when security groups are created and the network protocol is not specified entirely in lowercase, which allows remote attackers to bypass intended access restrictions.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nova"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "12.0.0a0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-2654"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/9f9e9da777161426a6f8cb4314b78e09beac2978"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/ff06c7c885dc94ed7c828e8cdbb8b5d850a7e654"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/nova/+bug/985184"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/76110"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/nova"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/nova/PYSEC-2012-37.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.launchpad.net/openstack/msg12883.html"
  }, {
    "type" : "WEB",
    "url" : "https://review.openstack.org/#/c/8239"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-1466-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T21:09:46Z",
    "nvd_published_at" : "2012-06-21T15:55:00Z"
  }
}