Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-138118
Published:November 28, 2026
Updated:December 01, 2026
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 Packages
hyperspy (CONDA):
Affected version(s) >=1.0 <2.6.0 || >=2.0 <2.6.0
Fix Suggestion:
Update to version 2.6.0
https://github.com/hyperspy/hyperspy.git (GITHUB):
Affected version(s) >=v1.0 <v2.6.0 || >=v2.0rc0 <v2.6.0
Fix Suggestion:
Update to version v2.6.0
hyperspy (PYTHON):
Affected version(s) >=1.0 <2.6.0 || >=2.0rc0 <2.6.0
Fix Suggestion:
Update to version 2.6.0
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.5
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.8
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Deserialization of Untrusted Data
EPSS
Base Score:
0.43