CVE-2024-29032
Python vulnerability analysis and mitigation

Overview

CVE-2024-29032 affects Qiskit IBM Runtime, an environment that streamlines quantum computations and provides optimal implementations of the Qiskit quantum computing SDK. The vulnerability exists in versions 0.1.0 through 0.21.2, where deserializing JSON data using qiskit_ibm_runtime.RuntimeDecoder can lead to arbitrary code execution when provided with a correctly formatted input string. The issue was discovered in March 2024 and has been fixed in version 0.21.2 (GitHub Advisory).

Technical details

The vulnerability stems from the RuntimeDecoder's implementation which allows unrestricted deserialization of JSON strings containing special types encoded via RuntimeEncoder. The issue lies in the code block that uses importlib.import_module() and inspect.getmembers() without proper validation, allowing attackers to craft malicious payloads that can spawn subprocesses and execute arbitrary code. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L (GitHub Advisory).

Impact

If exploited, this vulnerability allows attackers to execute arbitrary code within the context of the application. The impact is particularly concerning when the library is used to deserialize third-party data. The vulnerability could potentially affect both client-side applications and server-side implementations that use the RuntimeDecoder for JSON deserialization (GitHub Advisory).

Exploitability

The vulnerability can be exploited by crafting a malicious JSON payload with specific structure using the 'settings' type. A proof of concept demonstrates that an attacker can execute system commands by creating a payload that utilizes the subprocess.Popen class. The exploit can be triggered through both direct use of the RuntimeDecoder and potentially through the runtime API (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.21.2 of Qiskit IBM Runtime. Users are strongly advised to upgrade to this version or later. The fix involves restricting the import path for deserialization to prevent arbitrary code execution (GitHub Advisory).

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-2026-48039CRITICAL9.1
  • Python logoPython
  • meta-ads-mcp
NoYesAug 07, 2026
CVE-2026-48169HIGH8.8
  • Python logoPython
  • praisonai-platform
NoYesAug 07, 2026
GHSA-wvpp-8hx9-p66jHIGH8.8
  • Python logoPython
  • gitpython
NoYesAug 07, 2026
CVE-2026-71870MEDIUM4.8
  • Python logoPython
  • pypdf2
NoYesAug 07, 2026
CVE-2026-71852MEDIUM4.8
  • Python logoPython
  • pypdf
NoYesAug 07, 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