home / blog

2026-11-29 · high

CVE-2026-138118: Deserialization Vulnerability in HyperSpy

HyperSpy: CVE-2026-138118, .hspy/.zspy deserialization, arbitrary Python code execution. CVSS 7.8.

CVE-2026-138118: Deserialization Vulnerability in HyperSpy

CVE-2026-138118 affects HyperSpy, a library used for scientific computing. The issue lies in insecure deserialization of .hspy and .zspy files, allowing attackers to execute arbitrary Python code. Attackers can embed a malicious pickle payload in _class_dump components or 'fn'-flagged whitelist entries.

Severity is rated CVSS 7.8 (high range). The vulnerability was published on 28/11/2026 and there are some signals of discussion on social media, with 2 posts in the last 24 hours and 4 total interactions. No public repositories containing exploits have been reported.

For defense, it is recommended to immediately apply the update to version 2.6.0 or later. Avoid opening suspicious .hspy and .zspy files or those from untrusted sources. Implement additional controls on files before loading. Monitor systems for any anomalous activity.

At a glance

What
Deserialization vulnerability allowing arbitrary Python code execution via .hspy or .zspy files
Severity
High (CVSS 7.8)
Affected versions
HyperSpy from 1.4.0 before 2.6.0
Fix
Update to version 2.6.0 or later
Status
Published on 28/11/2026
Action
Apply patch and avoid opening suspicious files

Sources: NVD, CVE-2026-138118

← All articles