{
  "id": "CVE-2026-4870",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-4870",
  "published_at": "2026-06-12T20:52:58.528Z",
  "title": "Qiskit SDK is vulnerable to specific functions may recurse too deeply and overflow the available stack space, when encountering certain classical expressions.",
  "vendor": "IBM",
  "product": "Qiskit SDK",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "IBM Qiskit SDK 0.43.0 through 2.5.0 could allow an attacker to trigger a segmentation fault leading to a denial of service due to uncontrolled recursion in the parser.",
  "cwe": "CWE-674",
  "cpes": [
    "cpe:2.3:a:ibm:qiskit_software_development_kit:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "IBM",
        "product": "Qiskit SDK",
        "ranges": [
          "\u003e= 0.43.0, \u003c= 2.5.0"
        ],
        "fixed_in": null
      }
    ],
    "solutions": [
      "Remediation/Fixes guidance:\n\n\n\nThe issue is addressed in Qiskit versions v1.4.6 and v2.4.2. These are patched to error with a Python-space RecursionError exception once the expression depth exceeds the Python recursion limit which can be queried with sys.getrecursionlimit(). This limit can be adjusted by calling sys.setrecursionlimit(). Future versions of Qiskit may remove this limit entirely with a non-recursive version of the OpenQASM 2 parser.\n\n\n\n\n\nProduct(s)Version(s) number and/or range Remediation/Fix/Instructions\u003cQiskit SDK - qiskit.qasm2.loads() function\u003ev1.4.6 and v2.4.2\n\nUpgrade to the patched versions: qiskit v1.4.6 or qiskit v2.4.2.\n\n\u003cQiskit SDK - QuantumCircuit.from_qasm_str function\u003ev1.4.6 and v2.4.2\n\nUpgrade to the patched versions: qiskit v1.4.6 or qiskit v2.4.2.\n\n\u003cQiskit SDK - QuantumCircuit.from_qasm_str function\u003ev1.4.6 and v2.4.2\n\nUpgrade to the patched versions: qiskit v1.4.6 or qiskit v2.4.2."
    ],
    "workarounds": [
      "Workarounds/Mitigation guidance:\n\n\n\n\nNone"
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://www.ibm.com/support/pages/node/7276123"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
