← Lab /Software

Formal audit uncovers 547 security bugs in quantum simulators, including QASM injection

Open-source quantum computing simulators contain numerous critical and high-severity vulnerabilities, with a new QASM injection attack vector.

Software arXiv 8 Apr 2026 Measurement Prototype evidence

Published as “Broken Quantum: A Systematic Formal Verification Study of Security Vulnerabilities Across the Open-Source Quantum Computing Simulator Ecosystem”

Why it matters

The identified vulnerabilities enable denial-of-service, remote code execution, and supply-chain attacks on widely used quantum simulation software, posing immediate risks to research and commercial quantum computing workflows.

Summary

The study finds that 80% of the 45 open-source quantum simulation frameworks contain at least one security flaw, amounting to 547 findings (40 CRITICAL, 492 HIGH, 15 MEDIUM). Using the COBALT QAI static-analysis engine and Z3 SMT solver, the authors formally verify all 13 vulnerability patterns and demonstrate live exploits such as remote code execution in Harvard’s tequila. Evidence is strong: every CRITICAL finding is backed by a Z3 SAT proof and manual inspection, though the analysis excludes cloud-side validation layers. Nine frameworks score a perfect 100/100, showing that the issues are not inevitable. The paper also introduces a new quantum-specific QASM injection class and documents supply-chain propagation into Oak Ridge National Laboratory.

What they found 2

  1. 80% of the ecosystem (36 of 45 frameworks) exhibits at least one vulnerability.

    “80% of the ecosystem (36 of 45 frameworks) exhibits at least one vulnerability.”

  2. Qiskit Aer scores 0/100 due to 7 CRITICAL and 59 HIGH findings.

    “Summary (Qiskit Aer): 7 CRITICAL, 59 HIGH. Score: 0/100 - Broken.”

Caveats 5

  • Nine frameworks score 100/100 under all four scanners (qpp/ETH, QuEST/Oxford, qulacs/Fujitsu, dimod/D-Wave, qdk-python/Microsoft, and four others).
  • T4 - C++ undefined behavior portability. The impact of BITS[64] OOB access depends on heap layout, compiler optimization, and ASLR. We claim formal reachability of undefined behavior (C++11 standard), not a specific exploitation outcome.
  • T1 - Pattern matching false positives. All CRITICAL findings were confirmed via Z3 proof and manual code inspection.
  • T2 - Cloud-side validation layers. IBM Quantum, Google Quantum AI, Amazon Braket, and other cloud providers may enforce qubit count limits in their API gateway layers. These are not part of the open-source simulator codebases and do not protect: (a) local installations, (b) self-hosted deployments, (c) direct library use outside the cloud API, or (d) future deployments where the cloud limit is misconfigured.
  • T3 - CWE-400 exploitability. Resource exhaustion requires the attacker’s num qubits value to reach the vulnerable expression. In local installations, any user can trigger this. In cloud APIs, external guards may partially mitigate; the code remains vulnerable for any deployment without such guards.

What’s new here 4

  • First systematic formal security audit of the open-source quantum simulator ecosystem covering 45 frameworks.
  • Formal verification of each vulnerability pattern using Z3 SMT proofs, providing mathematical reachability guarantees.
  • Discovery of a quantum-specific vulnerability class (CWE-77 QASM injection) with no classical analog.
  • Supply-chain analysis revealing vendored code propagation from commercial frameworks into a US national laboratory.