CVE-2012-5482: Glance OpenStack Glance Arbitrary Deletion Of Vulnerability

MODERATE
Advisory Identifier: GHSA-vwr9-9f8v-vp5m
Published
Advisory Summary

CVE-2012-5482 is a MODERATE openstack glance arbitrary deletion of vulnerability (General Security Weakness) affecting Glance libraries in the PyPI ecosystem. The issue involves openstack glance arbitrary deletion of non-protected images. Remediation is available by upgrading affected packages to version 11.0.0a0.

CVE-2012-5482 at a Glance

CVE Identifier CVE-2012-5482
GHSA Identifier GHSA-vwr9-9f8v-vp5m
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Glance
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2012-5482

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

glance fixed: 11.0.0a0
pip install glance>=11.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 glance

How to Check if You Are Affected

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

pip show glance

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Glance, 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 v2 API in OpenStack Glance Grizzly, Folsom (2012.2), and Essex (2012.1) allows remote authenticated users to delete arbitrary non-protected images via an image deletion request. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-4573.

CVE-2012-5482 Affected Glance Versions

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

References

NVD — CVE-2012-5482 NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-5482
Security Fix Commit FIX COMMIT
https://github.com/openstack/glance/commit/b591304b8980d8aca8fa6cda9ea1621aca000c88
Security Fix Commit FIX COMMIT
https://github.com/openstack/glance/commit/fc0ee7623ec59c87ac6fc671e95a9798d6f2e2c3
bugs.launchpad.net/glance/+bug/1076506 WEB
https://bugs.launchpad.net/glance/+bug/1076506
exchange.xforce.ibmcloud.com/vulnerabilities/800... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/80019
Glance Source Repository REPOSITORY
https://github.com/openstack/glance
Glance Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/glance/PYSEC-2012-30.yaml
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2012-November/092192.html
Glance Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2012-11/msg00002.html
osvdb.org/87248 WEB
http://osvdb.org/87248
secunia.com/advisories/51174 WEB
http://secunia.com/advisories/51174
Glance Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/11/07/6
Glance Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/11/08/2
Glance Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/11/09/1
Glance Security Information SECURITY
http://www.openwall.com/lists/oss-security/2012/11/09/5
Glance Security Information SECURITY
http://www.securityfocus.com/bid/56437

Frequently Asked Questions

What is CVE-2012-5482?
CVE-2012-5482 is a security vulnerability in Glance involving OpenStack Glance arbitrary deletion of non-protected images under General Security Weakness.
Which Glance versions are affected?
Affected versions include releases prior to 11.0.0a0 across affected packages: glance.
What version fixes CVE-2012-5482?
Upgrading to 11.0.0a0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is glance affected?
Yes, glance is affected in releases prior to 11.0.0a0. Upgrade your dependency to 11.0.0a0 or later.
What CWE is associated with CVE-2012-5482?
CVE-2012-5482 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2012-5482?
Run the dependency tree command: 'pip show glance'. 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-vwr9-9f8v-vp5m",
  "modified" : "2024-11-21T21:49:01Z",
  "published" : "2022-05-17T01:39:26Z",
  "aliases" : [ "CVE-2012-5482" ],
  "summary" : "OpenStack Glance arbitrary deletion of non-protected images",
  "details" : "The v2 API in OpenStack Glance Grizzly, Folsom (2012.2), and Essex (2012.1) allows remote authenticated users to delete arbitrary non-protected images via an image deletion request.  NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-4573.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "glance"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "11.0.0a0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-5482"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/glance/commit/b591304b8980d8aca8fa6cda9ea1621aca000c88"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/glance/commit/fc0ee7623ec59c87ac6fc671e95a9798d6f2e2c3"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/glance/+bug/1076506"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/80019"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/glance"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/glance/PYSEC-2012-30.yaml"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2012-November/092192.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2012-11/msg00002.html"
  }, {
    "type" : "WEB",
    "url" : "http://osvdb.org/87248"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/51174"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/11/07/6"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/11/08/2"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/11/09/1"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2012/11/09/5"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/56437"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-12T20:28:42Z",
    "nvd_published_at" : "2012-11-11T13:00:00Z"
  }
}