CVE-2026-138118
published high CVSS 4.0 · 8.5HyperSpy 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model Restoration
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| HyperSpy | — | HyperSpy1.4.0 to < 2.6.0 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.5 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| HyperSpy | HyperSpy | 1.4.0 to < 2.6.0 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-502 Deserialization of Untrusted Data
References
9- reconstruct_object in export_dictionary.py (v2.5.0) https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/misc/export_dictionary.py#L187-L207
- reconstruct_component in model.py (v2.5.0) https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L106-L146
- Model._load_dictionary in model.py (v2.5.0) https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L645-L661
- Require explicit trust to restore pickled model components https://github.com/hyperspy/hyperspy/commit/28fdf2d0320c76c5d57a57e323ac510b2005e13d
- Merge of PR #3704 (require trust for pickled model content) https://github.com/hyperspy/hyperspy/commit/6382ae0ff5b0000a7aad5dc2f4b997b1d8dccb09
- GitHub issue #3699 https://github.com/hyperspy/hyperspy/issues/3699
- HyperSpy v2.6.0 Release Notes https://github.com/hyperspy/hyperspy/releases/tag/v2.6.0
- GitHub Security Advisory (GHSA-j975-x368-3hrr) https://github.com/hyperspy/hyperspy/security/advisories/GHSA-j975-x368-3hrr
- VulnCheck Advisory: HyperSpy 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model Restoration https://www.vulncheck.com/advisories/hyperspy-1.4.0-before-2.6.0-insecure-deserialization-rce-via-stored-model-restoration
Provider assertions
2VulnCheck · cna
HyperSpy 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model Restoration
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b5fa3826eef6df1aca19670e46603ce6547a2333c219077d306971ebcf3aca95
- Ingested
- 30 Nov 2026, 18:37:20 UTC
- Source record
- Official CVE record