Insecure deserialization in HyperSpy lets model files run code
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-502.
Summary
HyperSpy from 1.4.0 before 2.6.0 contains an insecure deserialization flaw (CWE-502) in stored model restoration. A local attacker can supply a crafted .hspy or .zspy file with a malicious pickle payload that runs arbitrary Python code when a victim restores the model.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Update HyperSpy to version 2.6.0, the fixed version.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA HyperSpy (HyperSpy) Fixed in 2.6.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
HyperSpy 2.6.0
2 records Highest priority Priority HIGH 1 HIGH, 1 LOW
Other records, highest priority first
- TI-2026-99395 Code execution in HyperSpy via sympy.sympify() in HSPY and ZSPY filesPriority LOW 36
Timeline
- 2026-11-28 Threatist record created from CVE-2026-138118
- 2026-11-28 Alias added: GHSA-6rm7-x9w5-p3h8
- 2026-11-30 CISA SSVC decision points changed
References
Patch 2
More HyperSpy vulnerabilities
- TI-2026-99395 Code execution in HyperSpy via sympy.sympify() in HSPY and ZSPY files CVSS 4.0HIGH 8.5
Sources
- CVE-2026-138118 · CVE Program
- CVE-2026-138118 · NVD
- FIRST EPSS
- GHSA-6rm7-x9w5-p3h8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences