# CVE-2026-137997: HCIPy through 0.7.1 Insecure Deserialization via Pickle Files in io.py

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-11-27T16:10:19.194Z
- Modified: 2026-11-30T17:18:48.780Z
- Weaknesses: CWE-502
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- ehpor HCIPy: up to 0.7.1

## Every score

- VulnCheck: CVSS:4.0 8.5 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ehpor/hcipy/issues/423> (issue-tracking)
- <https://github.com/ehpor/hcipy/pull/424> (issue-tracking, patch)
- <https://github.com/ehpor/hcipy/commit/ce3e08a85af8d3f43dae02e01c30b3231495e763> (patch)
- <https://github.com/ehpor/hcipy/blob/v0.7.1/hcipy/util/io.py#L262-L264> (technical-description)
- <https://www.vulncheck.com/advisories/hcipy-through-0.7.1-insecure-deserialization-via-pickle-files-in-io-py> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-137997](https://www.cve.org/CVERecord?id=CVE-2026-137997), CVE Terms of Use, modified 2026-11-27
- NVD: [CVE-2026-137997](https://nvd.nist.gov/vuln/detail/CVE-2026-137997), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-137997 · Whole record: https://cve.day/CVE-2026-137997.json · Rebuilt by cve.day 2026-11-30T17:32:13.022Z
