Skip to content

CVE-2026-138118 HyperSpy 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model Restoration

HighCVSS 8.5 EPSS 0.22%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

Description

HyperSpy from 1.4.0 before 2.6.0 contains an insecure deserialization vulnerability that allows attackers to execute arbitrary Python code by supplying crafted stored-model data in .hspy or .zspy files. Attackers can embed a malicious pickle payload in a component's _class_dump or a 'fn'-flagged _whitelist entry, which cloudpickle.loads() (dill in 1.x) runs when the victim restores the model.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
pypi hyperspy >= 1.4.0, < 2.6.0 2.6.0 Fixed

Affected products

ProductAffected versionsFixed in
pypi hyperspy >= 1.4.0, < 2.6.0 2.6.0

References