CVE-2026-138118
High 7.8 P4 · Monitor (17/100)HyperSpy from 1.4.0 before 2.6.0 contains an insecure deserialization vulnerability that allows attackers to execute arbitrary Python code …
Confirmed facts from the sources
- CVSS
- 7.8 (High) · CVSS 3.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Scored by disclosure@vulncheck.com - Exploitation confirmed
- Not in the CISA KEV catalog
- Exploitation estimated (EPSS)
- 0.22 % · percentile 7.6 % (as of 29.11.2026)
Probability of exploitation in the next 30 days – an estimate by FIRST, not confirmation. - Public exploit
- No reference to a public exploit.
- Fix
- No fix known
- Monitored technologies
- No monitored technology
Description (source)
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.
Affected products and versions
| Vendor / product | Affected versions | Fixed in | Source |
|---|---|---|---|
| pip: hyperspy | >= 1.4.0, < 2.6.0 | — | nvd |
Versions as published. “Fixed in” only where a source names the version explicitly.
Recommended mitigation
The sources name no fix or mitigation yet.
In general: check your versions, update to a fixed version, limit exposure until then and follow the vendor guidance.
AI interpretation
No AI interpretation yet – it is created for urgent advisories of monitored technologies. The facts above apply regardless.
Why this priority?: P4 · Monitor (17/100)
- Estimated exploitation probability 0.22 % (EPSS, percentile 7.6 %) – an estimate, not confirmation (+0)
- Technical severity: CVSS 7.8 (HIGH) – on its own not a reason for top priority (+12)
- No fix known – mitigations needed (+5)
Priority is a general assessment from CVSS, KEV, EPSS, exploits, relevance and fix availability. Whether a specific environment is affected depends on its versions, configuration and exposure.
Original advisories and links
- Advisory https://nvd.nist.gov/vuln/detail/CVE-2026-138118 · nvd
- Reference https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/misc/export_dictionary.py#L187-L… · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L106-L146 · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L645-L661 · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/commit/28fdf2d0320c76c5d57a57e323ac510b2005e13d · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/commit/6382ae0ff5b0000a7aad5dc2f4b997b1d8dccb09 · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/issues/3699 · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/releases/tag/v2.6.0 · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/security/advisories/GHSA-j975-x368-3hrr · disclosure@vulncheck.com
- Reference https://www.vulncheck.com/advisories/hyperspy-1.4.0-before-2.6.0-insecure-deserialization-… · disclosure@vulncheck.com