Vulnerability record
CVE-2026-138118
The short answer
CVE-2026-138118 affects HyperSpy and is rated high (CVSS 7.8). It is not in CISA's Known Exploited Vulnerabilities catalog.
What it is
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.
Weakness: CWE-502.
Severity
7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Exploited (CISA KEV)
Not listed
CISA lists confirmed exploitation only
EPSS, next 30 days
No score
FIRST scores CVEs within a day of publication
How it can be exploited
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Affected products
HyperSpy. NVD's record lists the exact affected versions.
References
- github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/misc/export_dictionary.py#L187-L207
- github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L106-L146
- github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L645-L661
- github.com/hyperspy/hyperspy/commit/28fdf2d0320c76c5d57a57e323ac510b2005e13d
- github.com/hyperspy/hyperspy/commit/6382ae0ff5b0000a7aad5dc2f4b997b1d8dccb09
- github.com/hyperspy/hyperspy/issues/3699
- github.com/hyperspy/hyperspy/releases/tag/v2.6.0
- github.com/hyperspy/hyperspy/security/advisories/GHSA-j975-x368-3hrr
- www.vulncheck.com/advisories/hyperspy-1.4.0-before-2.6.0-insecure-deserialization-rce-via-stored-model-restoration
Questions
Is CVE-2026-138118 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog as of 2026-11-28.
How do I fix CVE-2026-138118?
Follow the vendor advisory in the references below. NVD lists the affected versions under its configurations.
From NVD, CISA KEV, FIRST EPSS and OSV.dev, checked . Status on NVD: Received. The description is NVD's text, quoted as published.
Related
Newly exploited vulnerabilities, every Monday
What CISA added to its KEV catalog that week, and the Critical CVEs most likely to be exploited. One email a week, one click to stop.
Know the day a CVE lands in your code
Connect a GitHub repository and ZeusQA checks its dependencies daily, briefs each advisory and opens the fix. Three test runs free, no card.