HyperSpy from 1.4.0 before 2.6.0 contains an insecure deserialization vulnerability that allows attackers to execute
Source GCVE Database
Not known to be exploited · CVSS 8.5 High : upgrade to 2.6.0 soon.
Data as of 28 Nov 2026, 04:48 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 8.5 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 7.8 |
- Patch
- Available – fixed in 2.6.0
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 28 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 27 Nov 2026.
What to do
Upgrade HyperSpy to 2.6.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| HyperSpyHyperSpy | Affected
| Fixed in
|
PyPIHyperSpypkg:pypi/HyperSpyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, avoid loading untrusted .hspy or .zspy files to prevent exploitation.
Description
HyperSpy versions from 1.4.0 up to but not including 2.6.0 contain an insecure deserialization vulnerability. This flaw allows attackers to execute arbitrary Python code by supplying specially crafted stored-model data in .hspy or .zspy files. The vulnerability arises because malicious pickle payloads embedded in certain components are deserialized during model restoration.
References
- github.com/hyperspy/hyperspy/security/advisories/GHSA-j975-x368-3hrr (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-138118 (opens in a new tab)
- github.com/hyperspy/hyperspy/issues/3699 (opens in a new tab)
- github.com/hyperspy/hyperspy/commit/28fdf2d0320c76c5d57a57e323ac510b2005e13d (opens in a new tab)
- github.com/hyperspy/hyperspy/commit/6382ae0ff5b0000a7aad5dc2f4b997b1d8dccb09 (opens in a new tab)
- github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/misc/export_dictionary.py (opens in a new tab)
- github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py (opens in a new tab)
- github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py (opens in a new tab)
- github.com/hyperspy/hyperspy/releases/tag/v2.6.0 (opens in a new tab)
- vulncheck.com/advisories/hyperspy-1.4.0-before-2.6.0-insecure-deserialization-rce-via-stored-model-restoration (opens in a new tab)