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

Published Updated

Attackers supplying crafted pickle files to HCIPy can execute code with the user's privileges; users loading untrusted files should care.

CVSS score

High

8.5/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
None listed
No fixed version published
Attack path
Local or same network
No login, a user must click or open something

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.

PackageAffectedFixed in
hcipy PyPI
pkg:pypi/hcipy
All versions to 0.7.1None

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.

Is CVE-2026-137997 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free