{
  "id": "security/python/munich-quantum-toolkit__core/2026-12-04-dd-bindings-unchecked-widths",
  "title": "DD package Python bindings do not check widths in matrix_kronecker, trace, and partial_trace",
  "category": "security",
  "type": "memory-safety",
  "severity": "medium",
  "cvss": null,
  "ecosystem": "python",
  "project": {
    "owner": "munich-quantum-toolkit",
    "repo": "core",
    "url": "https://github.com/munich-quantum-toolkit/core"
  },
  "affected_versions": [
    "mqt-core >= 4.0.0, < 4.3.0"
  ],
  "fixed_version": "4.3.0",
  "status": "published",
  "disclosure": {
    "channel": "pvr",
    "ghsa_id": "GHSA-9945-prhj-jmg5",
    "cve_id": null,
    "url": "https://github.com/munich-quantum-toolkit/core/security/advisories/GHSA-9945-prhj-jmg5",
    "reported_at": null,
    "published_at": "2026-12-04T12:21:12+03:00"
  },
  "summary": "The DD package's Python bindings matrix_kronecker, trace and partial_trace handed caller-supplied widths to the C++ package without comparing them to the package capacity or to the matrix DD's level count (CWE-787). A Kronecker shift that puts the top operand at or above capacity indexes the unique tables out of bounds. A trace or partial_trace width shorter than the matrix's level count reads past the eliminatedBelow vector. The sibling bindings from_matrix and get_matrix already reject a bad width with ValueError. The pip package mqt-core is affected from 4.0.0 up to, but not including, 4.3.0. Fixed in 4.3.0. The repository was formerly cda-tum/mqt-core. GitHub rates it moderate. The advisory credits ucsurf as reporter. Found by reading the source. Nothing was compiled or run.",
  "discovered_at": "2026-12-04T12:21:12+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-12-04T12:21:12+03:00",
  "pr": null
}
