# CVE-2022-47951: OpenStack Cinder, glance, and Nova vulnerable to Path Traversal

> An authenticated user can read arbitrary files from the server by uploading a malicious VMDK image in OpenStack Cinder, Glance, or Nova.

- **Severity:** Medium 5.7 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 26 Jan 2023
- **Updated:** 31 Mar 2025
- **Also known as:** DEBIAN-CVE-2022-47951, DLA-3300-1, DLA-3301-1, DLA-3302-1, DSA-5336-1, DSA-5337-1, DSA-5338-1, GHSA-7h75-hwxx-qpgc, PYSEC-2026-2411, PYSEC-2026-2490, PYSEC-2026-868, RHSA-2023:1015, RHSA-2023:1016, RHSA-2023:1017, RHSA-2023:1278, RHSA-2023:1279, RHSA-2023:1280, SUSE-SU-2023:0844-1, SUSE-SU-2023:1949-1, UBUNTU-CVE-2022-47951, USN-5835-1, USN-5835-2, USN-5835-3, USN-5835-4, USN-5835-5

## What is CVE-2022-47951?

CVE-2022-47951 is a medium-severity path traversal vulnerability in Debian Debian Linux, published on 26 Jan 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

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.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2022-47951?

15 open source packages ship an affected version, including cinder, glance and nova. It affects 4 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `cinder` | PyPI | All versions | 19.1.2, 20.0.2 |
| `cinder` | PyPI | All versions | 19.1.2 |
| `cinder` | PyPI | All versions | 19.1.2 |
| `cinder` | PyPI | From 20.0.0 | 20.0.2 |
| `cinder` | PyPI | From 20.0.0 | 20.0.2 |
| `glance` | PyPI | All versions | 23.0.1, 24.1.1 |
| `glance` | PyPI | All versions | 23.0.1 |
| `glance` | PyPI | All versions | 23.0.1 |
| `glance` | PyPI | From 24.0.0 | 24.1.1 |
| `glance` | PyPI | From 24.0.0 | 24.1.1 |
| `nova` | PyPI | All versions | 24.1.2, 25.0.2 |
| `nova` | PyPI | All versions | 24.1.2 |
| `nova` | PyPI | All versions | 24.1.2 |
| `nova` | PyPI | From 25.0.0 | 25.0.2 |
| `nova` | PyPI | From 25.0.0 | 25.0.2 |
| `openstack-cinder` | Red Hat:openstack:13::el7 | All versions | 1:12.0.10-27.el7ost |
| `openstack-glance` | Red Hat:openstack:13::el7 | All versions | 1:16.0.1-13.el7ost |
| `openstack-nova` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-nova-api` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-nova-cells` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-nova-common` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-nova-compute` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-nova-conductor` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-nova-console` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-nova-migration` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-nova-network` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-nova-novncproxy` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-nova-placement-api` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-nova-scheduler` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-nova-serialproxy` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-nova-spicehtml5proxy` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `python-cinder` | Red Hat:openstack:13::el7 | All versions | 1:12.0.10-27.el7ost |
| `python-glance` | Red Hat:openstack:13::el7 | All versions | 1:16.0.1-13.el7ost |
| `python-glance-tests` | Red Hat:openstack:13::el7 | All versions | 1:16.0.1-13.el7ost |
| `python-nova` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `python-nova-tests` | Red Hat:openstack:13::el7 | All versions | 1:17.0.13-40.el7ost |
| `openstack-cinder` | Red Hat:openstack:16.1::el8 | All versions | 1:15.4.0-1.20230206163350.58f0e73.el8ost |
| `openstack-glance` | Red Hat:openstack:16.1::el8 | All versions | 1:19.0.4-1.20230207203320.5bbd356.el8ost |
| `openstack-nova` | Red Hat:openstack:16.1::el8 | All versions | 1:20.4.1-1.20221005193231.1ee93b9.el8ost |
| `openstack-nova-api` | Red Hat:openstack:16.1::el8 | All versions | 1:20.4.1-1.20221005193231.1ee93b9.el8ost |

Products: Debian Debian Linux, Openstack Cinder, Openstack Glance, Openstack Nova.

## How do I fix CVE-2022-47951?

Upgrade cinder to a fixed version for your release line: 19.1.2 or 20.0.2.

## Is CVE-2022-47951 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-47951 exists.

## Other vulnerabilities in Debian Debian Linux

- [CVE-2015-3306](https://insights.sbomify.com/CVE-2015-3306/): ProFTPD Improper Access Control (critical 10.0, exploited in the wild)
- [CVE-2025-49113](https://insights.sbomify.com/CVE-2025-49113/): RoundCube Webmail Deserialization of Untrusted Data (critical 9.9, exploited in the wild)
- [CVE-2026-24061](https://insights.sbomify.com/CVE-2026-24061/): GNU InetUtils Argument Injection (critical 9.8, exploited in the wild)
- [CVE-2025-39682](https://insights.sbomify.com/CVE-2025-39682/): Linux Kernel Improper Check for Unusual or Exceptional Conditions (critical 9.8, exploited in the wild)
- [CVE-2024-9680](https://insights.sbomify.com/CVE-2024-9680/): Mozilla Firefox Use-After-Free (critical 9.8, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-47951 and fix it if it is affected.

What it is: CVE-2022-47951 is a medium-severity path traversal vulnerability in Debian Debian Linux, published on 26 Jan 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-47951 exists.

Affected packages and fixed versions:
- cinder (PyPI): affected all versions; fixed in 19.1.2, 20.0.2
- cinder (PyPI): affected all versions; fixed in 19.1.2
- cinder (PyPI): affected all versions; fixed in 19.1.2
- cinder (PyPI): affected from 20.0.0; fixed in 20.0.2
- cinder (PyPI): affected from 20.0.0; fixed in 20.0.2
- glance (PyPI): affected all versions; fixed in 23.0.1, 24.1.1
- glance (PyPI): affected all versions; fixed in 23.0.1
- glance (PyPI): affected all versions; fixed in 23.0.1
- glance (PyPI): affected from 24.0.0; fixed in 24.1.1
- glance (PyPI): affected from 24.0.0; fixed in 24.1.1
- nova (PyPI): affected all versions; fixed in 24.1.2, 25.0.2
- nova (PyPI): affected all versions; fixed in 24.1.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2022-47951/ (Markdown: https://insights.sbomify.com/CVE-2022-47951/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2022-47951
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-47951
- OSV: https://osv.dev/vulnerability/CVE-2022-47951

---
From sbomify Insights: https://insights.sbomify.com/CVE-2022-47951/
Summaries are generated and may contain mistakes; the official description above is the record.
