Advisory

PYSEC-2026-510

Also known as: CVE-2025-2000, GHSA-6m2c-76ff-6vrf, PYSEC-2026-511

Summary

Qiskit allows arbitrary code execution decoding QPY format versions < 13

Details

Impact

A maliciously crafted QPY file can potentially execute arbitrary-code embedded in the payload without privilege escalation when deserializing QPY formats < 13. A python process calling Qiskit's qiskit.qpy.load() function could potentially execute any arbitrary Python code embedded in the correct place in the binary file as part of a specially constructed payload.

Patches

Fixed in Qiskit 1.4.2 and in Qiskit 2.0.0rc2

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-06-29 11:50 UTC
Modified
2026-07-02 13:00 UTC

Affected packages and fixes

qiskit

PyPI · All systems

Affected

  • introduced 0, fixed 1.4.2, introduced 2.0.0rc1, fixed 2.0.0rc2 (ecosystem)

Fixed versions

1.4.2, 2.0.0rc2

Fix

  • Fixed version 1.4.2
    pip install --upgrade qiskit==1.4.2
  • Fixed version 2.0.0rc2
    pip install --upgrade qiskit==2.0.0rc2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences