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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi hyperspy | >= 1.4.0, < 2.6.0 | 2.6.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi hyperspy | >= 1.4.0, < 2.6.0 | 2.6.0 |
References
- GitHub Security Advisory (GHSA-j975-x368-3hrr) exploit vendor-advisory
- Merge of PR #3704 (require trust for pickled model content) patch
- Require explicit trust to restore pickled model components patch
- HyperSpy v2.6.0 Release Notes release-notes
- GitHub issue #3699 exploit issue-tracking
- reconstruct_component in model.py (v2.5.0) technical-description
- reconstruct_object in export_dictionary.py (v2.5.0) technical-description
- VulnCheck Advisory: HyperSpy 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model Restoration third-party-advisory
- ENISA EUVD EUVD-2026-137533 third-party-advisory
- nvd.nist.gov