PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2024-40767: 
Python vulnerability analysis and mitigation

Overview

CVE-2024-40767 affects OpenStack Nova versions before 27.4.1, 28 before 28.2.1, and 29 before 29.1.1. The vulnerability allows an authenticated user to access potentially sensitive data by supplying a raw format image that is actually a crafted QCOW2 image with a backing file path or VMDK flat image with a descriptor file path. This issue exists because of an incomplete fix for CVE-2022-47951 and CVE-2024-32498 (OpenStack OSSA, NVD).

Technical details

The vulnerability involves two specific issues: a QCOW2 issue affecting systems where the use_cow_images configuration option is disabled, and a VMDK issue which is a regression of an earlier vulnerability (OSSA-2023-002) reintroduced by a new implementation. The vulnerability has a CVSS v3.1 Base Score of 6.5 (Medium) with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability allows authenticated users to access arbitrary files on the server by manipulating image formats, potentially exposing sensitive data. The vulnerability affects all Nova deployments and could lead to unauthorized access to potentially sensitive information stored on the server (Security Online).

Exploitability

The vulnerability requires authentication to exploit. An attacker can trigger the vulnerability by uploading specially crafted disk images in either QCOW2 or VMDK format that are disguised as raw format images. The exploit involves manipulating the backing file path or descriptor file path to access server files (OpenStack OSSA).

Mitigation and workarounds

Organizations should upgrade to Nova versions 27.4.1, 28.2.1, or 29.1.1 or later as appropriate for their deployment. Additionally, the image cache should be purged as part of mitigating this CVE to ensure no existing malicious images are present. Users attempting to identify malicious images in the cache should ensure they're using a version of qemu-img that's patched for QEMU CVE-2024-4467 (OpenStack OSSA).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

nova

Fixed

bullseye

nova

Fixed

sid

nova

Fixed

trixie

nova

Fixed

Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-49wc-vv82-h8j7CRITICAL9.3
  • Python logoPython
  • harp-proxy
NoYesOct 24, 2026
GHSA-jpw8-42g9-g437HIGH7.4
  • Python logoPython
  • harp-proxy
NoNoOct 24, 2026
GHSA-vvjr-4qwm-6xjxMEDIUM4.8
  • Python logoPython
  • harp-proxy
NoNoOct 24, 2026
GHSA-rr87-p3f8-qhxjHIGHN/A
  • Python logoPython
  • memtomem
NoYesOct 24, 2026
GHSA-3v6c-9qpg-gf63HIGHN/A
  • Python logoPython
  • memtomem-stm
NoYesOct 24, 2026

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