PythonSeverity: MediumStatus: Published
Legacy JSON decoder replays unvalidated method names, allowing arbitrary file writes
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.
Timeline
- Found
- Reported via private vulnerability report
- Advisory published
- Entry last updated
Machine-readable: JSON · Markdown · ID security/python/pasqal-io__Pulser/2026-11-12-legacy-json-decoder-unvalidated-method-replay
If this work is useful to you, you can support it on Buy Me a Coffee.