CVE-2026-137997: HCIPy through 0.7.1 Insecure Deserialization via Pickle Files in io.py
HCIPy through 0.7.1 contains an insecure deserialization vulnerability that allows attackers to execute code by supplying crafted .pkl files to readfield, readgrid or readmodebasis. Because hcipy/util/io.py selects pickle by file extension and calls pickle.load, a reduce gadget in a pupil, apodizer, PSF or mode-basis file runs code with the user's privileges.
Affected Software
Event History
Frequently Asked Questions
Which workflows are exposed?
Workflows that load .pkl files through read_field, read_grid, or read_mode_basis are exposed. This includes pickle-backed pupil, apodizer, PSF, and mode-basis files.
What does an attacker need to do?
An attacker must supply a crafted .pkl file and have it loaded by one of the affected functions. Exploitation requires user interaction and runs code with the privileges of the user loading the file.
Is authentication required for exploitation?
No privileges are required according to the CVSS vector. The attack is local and depends on a user loading the attacker-provided file.