Insecure deserialization in HCIPy lets crafted .pkl files run code
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-502.
Summary
HCIPy through 0.7.1 contains an insecure deserialization flaw (CWE-502) that lets attackers execute code with a crafted .pkl file passed to read_field, read_grid or read_mode_basis. Because hcipy/util/io.py chooses pickle by file extension and calls pickle.load, a __reduce__ gadget in a pupil, apodizer, PSF or mode-basis file runs with the user's privileges.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
HCIPy through 0.7.1 contains an insecure deserialization vulnerability that allows attackers to execute code by supplying crafted .pkl files to read_field, read_grid or read_mode_basis. 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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for HCIPy.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Timeline
- 2026-11-27 Threatist record created from CVE-2026-137997
- 2026-11-27 Alias added: GHSA-q538-gr46-hr2p
- 2026-11-30 CISA SSVC decision points changed
References
Sources
- CVE-2026-137997 · CVE Program
- CVE-2026-137997 · NVD
- FIRST EPSS
- GHSA-q538-gr46-hr2p · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences