What is CVE-2026-137997?
CVE-2026-137997 is a high-severity unsafe deserialization vulnerability in ehpor HCIPy, published on 27 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-502
How severe is CVE-2026-137997?
CVE-2026-137997 scores 8.5 out of 10 under CVSS 4.0, which is high severity. It was scored by VulnCheck.
- Attack vector
- Local
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- Passive
- Confidentiality
- High
- Integrity
- High
- Availability
- 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
Which versions are affected by CVE-2026-137997?
1 open source package ship an affected version, including hcipy.
An affected version is only exploitable if your software calls read_field, read_grid or read_mode_basis. Many projects that include it are not exposed.
| Package | Affected | Fixed in |
|---|---|---|
hcipy PyPIpkg:pypi/hcipy | All versions to 0.7.1 | None |
How do I fix CVE-2026-137997?
No fix has been published for CVE-2026-137997 yet. Limit exposure of the affected software until one is available.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2026-137997 being exploited?
There is no known exploitation of CVE-2026-137997 in the wild and no public exploit code.
Sources
Also known as GHSA-q538-gr46-hr2p.