HCIPy through 0.7.1 Insecure Deserialization via Pickle Files in io.py
- State
- Published
- Severity
- 8.5 High
- Published
- Nov 27, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 27, 2026
Description
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.
| Product | Versions |
|---|---|
| HCIPy ehpor | 0.7.1 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.5 High | VulnCheck | |
| 3.1 | 7.8 High | VulnCheck |
Weaknesses
- CWE-502 Deserialization of Untrusted Data
References
- https://github.com/ehpor/hcipy/issues/423Issue Tracker
- https://github.com/ehpor/hcipy/pull/424Issue TrackerPatch
- https://github.com/ehpor/hcipy/commit/ce3e08a85af8d3f43dae02e01c30b3231495e763Patch
- https://github.com/ehpor/hcipy/blob/v0.7.1/hcipy/util/io.py#L262-L264Technical Details
- VulnCheck Advisory: HCIPy through 0.7.1 Insecure Deserialization via Pickle Files in io.pyThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.