Qiskit SDK code execution
Description
QPY format versions < 13 in Qiskit SDK 0.18.0–1.4.1 allow arbitrary code execution via deserialization of maliciously crafted QPY files.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
QPY format versions < 13 in Qiskit SDK 0.18.0–1.4.1 allow arbitrary code execution via deserialization of maliciously crafted QPY files.
Vulnerability
Description
CVE-2025-2000 is a deserialization vulnerability in Qiskit's QPY binary serialization format. The flaw resides in the qiskit.qpy.load() function, which deserializes QPY format versions prior to 13. A specially crafted QPY file can embed arbitrary Python code in a specific location within the binary payload. When loaded by a vulnerable version of Qiskit, this code is executed without privilege escalation [1], [2]. The root cause is the insecure deserialization of untrusted data, classified as CWE-502 [3].
Exploitation
Details
Exploitation requires an attacker to craft a malicious QPY file and deliver it to a target system. No authentication or prior access is needed; the attack can be executed remotely if a user or automated process loads the file using the affected function. The vulnerability is present in Qiskit SDK versions 0.18.0 through 1.4.1, and also affects the release candidate 2.0.0rc1 [4]. The CVSS 3.1 base score is 9.8, indicating critical severity with network attack vector, low attack complexity, and no privileges required [3].
Impact
Successful exploitation grants the attacker the ability to execute arbitrary Python code in the context of the process calling qiskit.qpy.load(). This can lead to full compromise of the affected system, including data theft, installation of malware, or further lateral movement within the network [2], [3]. Since the code runs with the same privileges as the calling process, the impact is limited only by that user's permissions.
Mitigation
The vulnerability is fixed in Qiskit version 1.4.2 and in release candidate 2.0.0rc2 [4]. Users are strongly advised to upgrade to these patched versions or later. No workarounds are available for earlier releases [3]. Organizations should prioritize patching, especially if QPY files from untrusted sources are loaded. The issue has been acknowledged by IBM researchers Matthew Treinish and Jake Lishman [3].
- GitHub - Qiskit/qiskit: Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
- NVD - CVE-2025-2000
- Security Bulletin: Arbitrary QPY Execution in Qiskit SDK QPY Deserialization < 13
- Arbitrary code execution decoding QPY format versions < 13
AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
qiskit-terraPyPI | >= 0.18.0, <= 0.46.3 | — |
qiskitPyPI | < 1.4.2 | 1.4.2 |
qiskitPyPI | >= 2.0.0rc1, < 2.0.0rc2 | 2.0.0rc2 |
Affected products
3- ghsa-coords2 versions
< 1.4.2+ 1 more
- (no CPE)range: < 1.4.2
- (no CPE)range: >= 0.18.0, <= 0.46.3
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-6m2c-76ff-6vrfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-2000ghsaADVISORY
- www.ibm.com/support/pages/node/7185949ghsavendor-advisorypatchWEB
- github.com/Qiskit/qiskit/security/advisories/GHSA-6m2c-76ff-6vrfghsaWEB
News mentions
0No linked articles in our index yet.