# CVE-2022-4134: OpenStack Glance Inclusion of Functionality from Untrusted Control Sphere vulnerability

> Authenticated attackers can tamper with images in OpenStack Glance, compromising the integrity of virtual machines created from them.

- **Severity:** Low 2.8 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 6 Mar 2023
- **Updated:** 6 Mar 2025
- **Also known as:** GHSA-5gp5-vxj6-4257, PYSEC-2023-270, UBUNTU-CVE-2022-4134

## What is CVE-2022-4134?

CVE-2022-4134 is a low-severity missing authorization vulnerability in Redhat Openstack, published on 6 Mar 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

A flaw was found in openstack-glance. This issue could allow a remote, authenticated attacker to tamper with images, compromising the integrity of virtual machines created using these modified images.

Weakness: CWE-829 (Inclusion of Functionality from Untrusted Control Sphere)

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

3 open source packages ship an affected version, including glance. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `glance` | PyPI | All versions to 25.1.0 | None |
| `glance` | PyPI | All versions to 25.1.0 | None |
| `glance` | PyPI | All versions to 25.1.0 | None |

Products: Openstack Glance, Redhat Openstack.

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

No fix has been published for CVE-2022-4134 yet. Limit exposure of the affected software until one is available.

## Is CVE-2022-4134 being exploited?

There is no known exploitation of CVE-2022-4134 in the wild and no public exploit code.

## Other vulnerabilities in Redhat Openstack

- [CVE-2017-7200](https://insights.sbomify.com/CVE-2017-7200/): OpenStack Glance Server-Side Request Forgery (SSRF) (medium 5.8)
- [CVE-2015-8234](https://insights.sbomify.com/CVE-2015-8234/): OpenStack Glance Signature Verification Bypass (medium 5.5)
- [CVE-2026-34881](https://insights.sbomify.com/CVE-2026-34881/): OpenStack Glance is affected by Server-Side Request Forgery (SSRF) (medium 5.0)
- [CVE-2016-8611](https://insights.sbomify.com/CVE-2016-8611/): Denial of service in openstack-glance (medium 4.3)
- [CVE-2015-3289](https://insights.sbomify.com/CVE-2015-3289/): Denial of service in n/a (medium 4.0)

## Fix prompt for AI coding agents

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

What it is: CVE-2022-4134 is a low-severity missing authorization vulnerability in Redhat Openstack, published on 6 Mar 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2022-4134 in the wild and no public exploit code.

Affected packages and fixed versions:
- glance (PyPI): affected all versions up to 25.1.0; no fix listed
- glance (PyPI): affected all versions up to 25.1.0; no fix listed
- glance (PyPI): affected all versions up to 25.1.0; no fix listed

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-4134/ (Markdown: https://insights.sbomify.com/CVE-2022-4134/index.md)
```

## Sources

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

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