CVE-2026-138118
JSON

8.5high

HyperSpy 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model Restoration

Severity
8.5high CVSS:4.0 by VulnCheck
Exploit likelihood
0.43% (higher than 38% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
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.

Affected

Product or packageVersionsReported by
HyperSpy HyperSpyfrom 1.4.0 before 2.6.0CVE List

All scores

VulnCheck8.5high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-502

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

References

https://github.com/hyperspy/hyperspy/security/advisories/GHSA-j975-x368-3hrrexploit, vendor-advisory
https://github.com/hyperspy/hyperspy/commit/6382ae0ff5b0000a7aad5dc2f4b997b1d8dccb09patch
https://github.com/hyperspy/hyperspy/commit/28fdf2d0320c76c5d57a57e323ac510b2005e13dpatch
https://github.com/hyperspy/hyperspy/releases/tag/v2.6.0release-notes
https://github.com/hyperspy/hyperspy/issues/3699exploit, issue-tracking
https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L106-L146technical-description
https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L645-L661technical-description
https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/misc/export_dictionary.py#L187-L207technical-description
https://www.vulncheck.com/advisories/hyperspy-1.4.0-before-2.6.0-insecure-deserialization-rce-via-stored-model-restorationthird-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-138118 changed 2026-11-30CVE Terms of Use
NVDCVE-2026-138118 changed 2026-11-30Public domain