CVE-2022-4134
Python vulnerability analysis and mitigation

Overview

A vulnerability was identified in OpenStack Glance (CVE-2022-4134) that affects all supported releases. The flaw allows remote, authenticated attackers to tamper with images, potentially compromising the integrity of virtual machines created using these modified images. This vulnerability is particularly concerning in deployments where Glance shares a common storage backend with Nova and/or Cinder (OpenStack Wiki, Red Hat CVE).

Technical details

The vulnerability occurs when the Glance API service is configured with 'showmultiplelocations' set to True (default is False) or when the end-user-facing glance-api has the 'showimagedirecturl' option set to True (default is False). In configurations where Nova creates a root disk snapshot, data is never uploaded to Glance; instead, a snapshot is created directly in the backend, and Nova creates a Glance image record with 'size' 0 and an empty 'oshash_value', making it impossible to compare the hash of downloaded image data (OpenStack Wiki).

Impact

The vulnerability allows malicious users to create an image in Glance, set an additional location pointing to an altered image, and then delete the original location. This results in consumers of the original image unknowingly using the malicious image. While this attack cannot change the original image's checksum, it is limited to images owned by the attacker. The impact is particularly severe in deployments using Ceph, where these configurations are common (OpenStack Wiki).

Mitigation and workarounds

The recommended mitigation is to implement a dual glance-api deployment configuration: 1) A 'user-facing' glance-api accessible to end users and appearing in users' service catalogs, and 2) An 'internal-only-facing' glance-api accessible only to services requiring access to the 'directurl' or image location fields, protected by firewalls from end-user access. Additionally, the 'showmultiplelocations' and 'showimagedirecturl' options should never be enabled on end-user-facing instances (OpenStack Wiki).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66423HIGH7.1
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-66454MEDIUM6.5
  • PythonPython
  • arcade-mcp-server
NoYesDec 02, 2025
CVE-2025-66424MEDIUM6.5
  • PythonPython
  • trytond
NoYesNov 30, 2025
CVE-2025-66422MEDIUM4.3
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-65858LOW3.5
  • PythonPython
  • calibreweb
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management