๐Ÿ” CVE Alert

CVE-2026-138118

HIGH 7.8

HyperSpy 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model Restoration

CVSS Score
7.8
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-502
Vendor hyperspy
Product hyperspy
Published Nov 28, 2026
Stay Ahead of the Next One

Get instant alerts for hyperspy hyperspy

Be the first to know when new high vulnerabilities affecting hyperspy hyperspy are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

HyperSpy / HyperSpy
1.4.0 < 2.6.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/hyperspy/hyperspy/security/advisories/GHSA-j975-x368-3hrr github.com: https://github.com/hyperspy/hyperspy/commit/6382ae0ff5b0000a7aad5dc2f4b997b1d8dccb09 github.com: https://github.com/hyperspy/hyperspy/commit/28fdf2d0320c76c5d57a57e323ac510b2005e13d github.com: https://github.com/hyperspy/hyperspy/releases/tag/v2.6.0 github.com: https://github.com/hyperspy/hyperspy/issues/3699 github.com: https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L106-L146 github.com: https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L645-L661 github.com: https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/misc/export_dictionary.py#L187-L207 vulncheck.com: https://www.vulncheck.com/advisories/hyperspy-1.4.0-before-2.6.0-insecure-deserialization-rce-via-stored-model-restoration

Credits

Dilanka Kaushal Hewage hnwg