{
  "id": "security/python/pasqal-io__Pulser/2026-11-12-legacy-json-decoder-unvalidated-method-replay",
  "title": "Legacy JSON decoder replays unvalidated method names, allowing arbitrary file writes",
  "category": "security",
  "type": "path-traversal",
  "severity": "medium",
  "cvss": {
    "vector": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N",
    "score": 4.8
  },
  "ecosystem": "python",
  "project": {
    "owner": "pasqal-io",
    "repo": "Pulser",
    "url": "https://github.com/pasqal-io/Pulser"
  },
  "affected_versions": [
    "pulser-core (pip) <= 1.10.0"
  ],
  "fixed_version": "1.10.1 (backports 1.9.2, 1.8.1, 1.7.3, 1.6.7)",
  "status": "published",
  "disclosure": {
    "channel": "pvr",
    "ghsa_id": "GHSA-4r7r-mfqw-h79v",
    "cve_id": null,
    "url": "https://github.com/pasqal-io/Pulser/security/advisories/GHSA-4r7r-mfqw-h79v",
    "reported_at": "2026-11-12T10:10:14+03:00",
    "published_at": "2026-11-17T18:57:38+03:00",
    "accepted_at": null
  },
  "summary": "pulser.json.coders.PulserDecoder replayed method names from the JSON \"calls\"/\"to_build_calls\" lists and from __submodule__/__name__ without checking them against an allowlist (CWE-470, CWE-73). A crafted legacy-format document could make the decoder call Sequence.draw or Register.draw with an attacker-chosen fig_name, writing a matplotlib figure file to any path the process can write. The file content is not meaningfully controllable, and there is no code execution. The abstract-representation serializer is not affected. The fix adds SUPPORTED_SEQUENCE_CALLS and SUPPORTED_SUBMODULE_METHODS allowlists. Affected pulser-core (pip) versions are <= 1.10.0. Fixed in 1.10.1, with backports 1.9.2, 1.8.1, 1.7.3 and 1.6.7. Versions older than 1.6 are not patched.",
  "discovered_at": "2026-11-12T10:10:14+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-11-17T21:30:00+03:00",
  "pr": null,
  "references": [
    "https://github.com/pasqal-io/Pulser/commit/89d04fd9d26de3cd1697f7a8adbae04595cbe473"
  ]
}
