CVE-2026-137997

7.8High

Published Nov 27, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.8CVSS

High

0CVSS v3.110

Attack vector
Local
Complexity
Low
Privileges
None
User action
Required
Impact
Full C/I/A compromise
Weakness
CWE-502

What an attacker gets

Attackers can execute arbitrary code with your privileges by providing a malicious .pkl file. This requires a user to open a crafted file using the library's read functions.

Root cause

The library uses pickle.load on untrusted input files without validation, allowing for arbitrary code execution via __reduce__ gadgets.

Affected versions

HCIPy through 0.7.1

CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to a version beyond 0.7.1 once available. Until then, do not process .pkl files from untrusted sources using read_field, read_grid, or read_mode_basis.

remediation — bash
$ pip install --upgrade hcipy

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

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

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-137997

More fully triaged vulnerabilities you may want to check next.