CVE-2022-47951: Cinder Path Traversal Vulnerability
MODERATECVE-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
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).
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.
pip install cinder>=19.1.2
pip install cinder>=20.0.2
pip install glance>=23.0.1
pip install glance>=24.1.1
pip install nova>=24.1.2
pip install nova>=25.0.2
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
CVE-2022-47951 Affected Cinder Versions
6 component(s)| 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?
Which Cinder versions are affected?
What version fixes CVE-2022-47951?
Is cinder affected?
Is glance affected?
What is the CVSS score of CVE-2022-47951?
What CWE is associated with CVE-2022-47951?
How can I check PyPI dependencies for CVE-2022-47951?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}