Advisory

GHSA-6m2c-76ff-6vrf

Also known as: CVE-2025-2000, PYSEC-2026-510, 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: The source's own band: CRITICAL

Dates

Published
2025-03-14 19:56 UTC
Modified
2026-11-16 16:30 UTC

Affected packages and fixes

qiskit-terra

PyPI · All systems

Affected

  • introduced 0.18.0, last affected 0.46.3 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

qiskit

PyPI · All systems

Affected

  • introduced 0, fixed 1.4.2 (ecosystem)

Fixed versions

1.4.2

Fix

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

qiskit

PyPI · All systems

Affected

  • introduced 2.0.0rc1, fixed 2.0.0rc2 (ecosystem)

Fixed versions

2.0.0rc2

Fix

  • 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences