CVE-2026-137997 in HCIPyinfo

Summary

by MITRE • 11/27/2026

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.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability identified within HCIPy versions up to 0.7.1 represents a critical insecure deserialization flaw rooted in the improper handling of Python pickle files. This issue specifically affects functions such as read_field, read_grid, and read_mode_basis, which are designed to load astronomical data structures from disk. The core technical deficiency lies in the implementation within hcipy/util/io.py, where the library automatically selects the serialization format based solely on the file extension rather than validating the content or using a safer alternative like JSON or YAML for untrusted inputs. When these functions encounter files with extensions associated with pickle formats, they invoke pickle.load without any restrictions, thereby allowing an attacker to supply crafted .pkl files that contain malicious payloads.

From a technical perspective, this vulnerability exploits Python's object serialization mechanism, which allows arbitrary objects to be serialized and deserialized by implementing the _reduce_ method. An adversary can craft a pickle file containing a class instance with a custom _reduce_ implementation that executes system commands or performs other harmful actions upon deserialization. Because HCIPy is often used in scientific computing environments where users may run scripts with elevated privileges, executing code through this vector grants the attacker the ability to operate under the user's permissions. This effectively bypasses standard security boundaries and can lead to full system compromise if the victim runs the application as a privileged account or within an environment that provides access to sensitive resources.

The operational impact of this vulnerability is severe, particularly in collaborative research environments where data files are shared between institutions or individuals who may not be fully trusted. An attacker could distribute maliciously crafted pupil, apodizer, PSF, or mode-basis files disguised as legitimate astronomical datasets. When a researcher loads these files using the affected HCIPy functions, arbitrary code execution occurs immediately upon deserialization. This can result in data exfiltration, installation of backdoors, lateral movement within internal networks, and complete loss of integrity for computational results. The risk is amplified by the fact that pickle is commonly used in Python ecosystems for its convenience, leading to a widespread assumption among developers that it is safe for general-purpose serialization without considering security implications when handling external data sources.

This vulnerability aligns with CWE-502, which describes deserialization of untrusted data as a common weakness. It also maps to the MITRE ATT&CK technique T1647, specifically under Privilege Escalation via Trusted Software Supply Chain or Local Exploitation, depending on how the malicious file was introduced into the environment. The attack vector is classified as local with low complexity if the attacker has access to place files in a directory monitored by the application, but it becomes remote exploitable if such files can be delivered through network services that accept uploads of these data formats.

To mitigate this risk, developers and users should immediately upgrade HCIPy to version 0.7.2 or later where the issue is addressed. In the interim, organizations should enforce strict input validation policies by rejecting any pickle-based inputs unless they originate from fully trusted sources with verified integrity checksums. Implementing a whitelist approach for file extensions and avoiding automatic format detection based on extension alone can significantly reduce exposure. Additionally, running HCIPy processes under least-privilege accounts limits the potential damage of successful exploitation. Security teams should also monitor for unusual process executions or network connections originating from Python processes handling astronomical data files to detect potential active attacks in real time.

Responsible

VulnCheck

Reservation

11/27/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!