CVE-2015-1195: Glance // Scheme Vulnerability

MODERATE
Advisory Identifier: GHSA-pwrj-f53c-f89j
CWE-22
Published
Advisory Summary

CVE-2015-1195 is a MODERATE // scheme vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Glance libraries in the PyPI ecosystem. The issue involves // scheme. Remediation is available by upgrading affected packages to version 11.0.0a0.

CVE-2015-1195 at a Glance

CVE Identifier CVE-2015-1195
GHSA Identifier GHSA-pwrj-f53c-f89j
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Glance
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2015-1195

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-2015-1195, 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 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. 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 Image Registry and Delivery Service (Glance) before 2014.1.4 and 2014.2.x before 2014.2.2 allows remote authenticated users to read or delete arbitrary files via a full pathname in a `filesystem://` URL in the image location property. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-9493.

CVE-2015-1195 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

Frequently Asked Questions

What is CVE-2015-1195?
CVE-2015-1195 is a security vulnerability in Glance involving // scheme under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Glance versions are affected?
Affected versions include releases prior to 11.0.0a0 across affected packages: glance.
What version fixes CVE-2015-1195?
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-2015-1195?
CVE-2015-1195 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check PyPI dependencies for CVE-2015-1195?
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-pwrj-f53c-f89j",
  "modified" : "2024-05-14T21:32:09Z",
  "published" : "2022-05-14T01:37:00Z",
  "aliases" : [ "CVE-2015-1195" ],
  "summary" : "OpenStack Glance v2 API unrestricted path traversal through filesystem:// scheme",
  "details" : "The V2 API in OpenStack Image Registry and Delivery Service (Glance) before 2014.1.4 and 2014.2.x before 2014.2.2 allows remote authenticated users to read or delete arbitrary files via a full pathname in a `filesystem://` URL in the image location property.  NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-9493.",
  "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-2015-1195"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/glance/commit/5191ed1879c5fd5b2694f922bcedec232f461088"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/glance/commit/7d3a1db33ccbd25b9fc7326ce3468eabd2a41a99"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/glance/commit/a2d986b976e9325a272e2d422465165315d19fe6"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/ossa/+bug/1408663"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/glance"
  }, {
    "type" : "WEB",
    "url" : "http://lists.openstack.org/pipermail/openstack-announce/2015-January/000325.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/62169"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2015/01/15/2"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2015/01/18/5"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/bulletinapr2015-2511959.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/71976"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T21:32:09Z",
    "nvd_published_at" : "2015-01-21T18:59:00Z"
  }
}