CVE-2022-47951: Cinder Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-7h75-hwxx-qpgc
CVSS 5.7
CWE-22
Published
Advisory Summary

CVE-2022-47951 is a MODERATE (CVSS 5.7) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Cinder libraries in the PyPI ecosystem. The issue involves openstack cinder, glance, and nova vulnerable to path traversal. Remediation is available by upgrading affected packages to version 19.1.2, 20.0.2, 23.0.1, 24.1.1, 24.1.2, 25.0.2.

CVE-2022-47951 at a Glance

CVE Identifier CVE-2022-47951
GHSA Identifier GHSA-7h75-hwxx-qpgc
Severity MODERATE
CVSS v3.1 Base Score 5.7
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Cinder
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.7

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

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

How to Fix CVE-2022-47951

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: 19.1.2
pip install cinder>=19.1.2
cinder fixed: 20.0.2
pip install cinder>=20.0.2
glance fixed: 23.0.1
pip install glance>=23.0.1
glance fixed: 24.1.1
pip install glance>=24.1.1
nova fixed: 24.1.2
pip install nova>=24.1.2
nova fixed: 25.0.2
pip install nova>=25.0.2
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-2022-47951, 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 19.1.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-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 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

An issue was discovered in OpenStack Cinder before 19.1.2, 20.x before 20.0.2, and 21.0.0; Glance before 23.0.1, 24.x before 24.1.1, and 25.0.0; and Nova before 24.1.2, 25.x before 25.0.2, and 26.0.0. By supplying a specially created VMDK flat image that references a specific backing file path, an authenticated user may convince systems to return a copy of that file's contents from the server, resulting in unauthorized access to potentially sensitive data.

CVE-2022-47951 Affected Cinder Versions

6 component(s)
Fixed Versions:
19.1.220.0.223.0.124.1.124.1.225.0.2
Product / Package Ecosystem Affected Versions Fixed Version
cinder
PyPI
< 19.1.2
19.1.2
cinder
PyPI
≥ 20.0.0
< 20.0.2
20.0.2
glance
PyPI
< 23.0.1
23.0.1
glance
PyPI
≥ 24.0.0
< 24.1.1
24.1.1
nova
PyPI
< 24.1.2
24.1.2
nova
PyPI
≥ 25.0.0
< 25.0.2
25.0.2

References

Frequently Asked Questions

What is CVE-2022-47951?
CVE-2022-47951 is a security vulnerability in Cinder involving OpenStack Cinder, glance, and Nova vulnerable to Path Traversal under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Cinder versions are affected?
Affected versions include releases prior to 19.1.2, 20.0.2, 23.0.1, 24.1.1, 24.1.2, 25.0.2 across affected packages: cinder, glance, nova.
What version fixes CVE-2022-47951?
Upgrading to 19.1.2, 20.0.2, 23.0.1, 24.1.1, 24.1.2, 25.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cinder affected?
Yes, cinder is affected in releases prior to 19.1.2, 20.0.2. Upgrade your dependency to 19.1.2, 20.0.2 or later.
Is glance affected?
Yes, glance is affected in releases prior to 23.0.1, 24.1.1. Upgrade your dependency to 23.0.1, 24.1.1 or later.
What is the CVSS score of CVE-2022-47951?
CVE-2022-47951 has a CVSS v3.1 base score of 5.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2022-47951?
CVE-2022-47951 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-2022-47951?
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-7h75-hwxx-qpgc",
  "modified" : "2025-03-31T23:31:40Z",
  "published" : "2023-01-27T00:30:19Z",
  "aliases" : [ "CVE-2022-47951" ],
  "summary" : "OpenStack Cinder, glance, and Nova vulnerable to Path Traversal",
  "details" : "An issue was discovered in OpenStack Cinder before 19.1.2, 20.x before 20.0.2, and 21.0.0; Glance before 23.0.1, 24.x before 24.1.1, and 25.0.0; and Nova before 24.1.2, 25.x before 25.0.2, and 26.0.0. By supplying a specially created VMDK flat image that references a specific backing file path, an authenticated user may convince systems to return a copy of that file's contents from the server, resulting in unauthorized access to potentially sensitive data.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "cinder"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "19.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "cinder"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "20.0.0"
      }, {
        "fixed" : "20.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "glance"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "23.0.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "glance"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "24.0.0"
      }, {
        "fixed" : "24.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nova"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "24.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nova"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "25.0.0"
      }, {
        "fixed" : "25.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-47951"
  }, {
    "type" : "WEB",
    "url" : "https://launchpad.net/bugs/1996188"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2023/01/msg00040.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2023/01/msg00041.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2023/01/msg00042.html"
  }, {
    "type" : "WEB",
    "url" : "https://security.openstack.org/ossa/OSSA-2023-002.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2023/dsa-5336"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2023/dsa-5337"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2023/dsa-5338"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-08T21:35:25Z",
    "nvd_published_at" : "2023-01-26T22:15:00Z"
  }
}