CVE-2026-137997

HCIPy through 0.7.1 Insecure Deserialization via Pickle Files in io.py

Published Nov 27, 2026 CVSS 4.0 · 8.5 High EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is an insecure deserialization flaw in HCIPy 0.7.1 and earlier, caused by the hcipy/util/io.py module selecting pickle based on file extension and then calling pickle.load. A malicious .pkl file that includes a __reduce__ gadget can trigger arbitrary code execution during read_field, read_grid or read_mode_basis, running with the same privileges as the HCIPy user.

Affected Systems

Affected systems include the Python package HCIPy, released by the vendor ehpor. Versions up to and including 0.7.1 are vulnerable. The flaw resides specifically in the io.py module which loads pickle files without validation.

Risk and Exploitability

The CVSS base score is 8.5, indicating a high‑severity vulnerability. EPSS data are not available, so the probability of exploitation remains unknown, and the issue is not listed in the CISA KEV catalog. The likely attack vector is an attacker controlling the contents of a .pkl file that is read by HCIPy; if the application is exposed to network inputs or accepts uploads, the deserialization will execute code under the running user’s privileges. This could lead from local compromise to full system takeover, depending on the environment.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade HCIPy to a version where the unsafe pickle.load has been removed or replaced with a secure deserialization approach.
  • If an upgrade is not possible, block or quarantine any .pkl files from untrusted sources and ensure HCIPy never loads them by rejecting such files before the read_* functions are called.
  • Enforce strict file system permissions on directories used by HCIPy and restrict execution rights to mitigate the impact of a potential malicious payload.

Generated by OpenCVE AI on November 27, 2026 at 17:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Ehpor
Ehpor hcipy
Vendors & Products Ehpor
Ehpor hcipy
Type Values Removed Values Added
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.
Title HCIPy through 0.7.1 Insecure Deserialization via Pickle Files in io.py
Weaknesses CWE-502
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': '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'}

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 27, 2026, 4:10 PM
Reserved
Nov 27, 2026, 3:59 PM
Status
Received
Published
Nov 27, 2026, 5:17 PM
Modified
Nov 27, 2026, 5:17 PM