{
  "schema_version": "1.4.0",
  "id": "GHSA-6m2c-76ff-6vrf",
  "modified": "2025-05-02T21:58:50Z",
  "published": "2025-03-14T19:56:14Z",
  "aliases": [
    "CVE-2025-2000"
  ],
  "summary": "Qiskit allows arbitrary code execution decoding QPY format versions < 13",
  "details": "### Impact\n\nA 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.\n\n### Patches\n\nFixed in Qiskit 1.4.2 and in Qiskit 2.0.0rc2",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "qiskit-terra"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0.18.0"
            },
            {
              "last_affected": "0.46.3"
            }
          ]
        }
      ]
    },
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "qiskit"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.4.2"
            }
          ]
        }
      ],
      "database_specific": {
        "last_known_affected_version_range": "<= 1.4.1"
      }
    },
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "qiskit"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "2.0.0rc1"
            },
            {
              "fixed": "2.0.0rc2"
            }
          ]
        }
      ],
      "versions": [
        "2.0.0rc1"
      ]
    }
  ],
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/Qiskit/qiskit/security/advisories/GHSA-6m2c-76ff-6vrf"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-2000"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/Qiskit/qiskit"
    },
    {
      "type": "WEB",
      "url": "https://www.ibm.com/support/pages/node/7185949"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-502"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2025-03-14T19:56:14Z",
    "nvd_published_at": null
  }
}