All vulnerabilities

PyPI

CVE-2026-138118

HyperSpy 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model Restoration

Severity
High 8.5
Published
28 Nov 2026
Last changed
28 Nov 2026
Added to UpHeron
28 Nov 2026
Fixed in
2.6.0
Exploit chance
0.2% in the next 30 daysHigher than 7% of CVEs. EPSS by FIRST, 29 Nov 2026
Weakness
Deserialization of untrusted data (CWE-502)
Attack
Needs local access · No login needed · Needs someone to view a page or file
Attacker can
Read data · Change data · Take it down
CVSS vector
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
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
hyperspyPyPI · osv:PyPI:hyperspy
  • From 1.4.0 before 2.6.0

About hyperspy

Weekly downloads (PyPI)
20,149PyPI Stats, 28 Nov 2026

Vulnerabilities in hyperspy

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
2
Known exploited
0
Search the list for hyperspy

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-138118