Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Python

CVE-2026-138118 — HyperSpy

High · CVSS 8.5 First seen November 28, 2026

One of 2 HyperSpy vulnerabilities published together by NVD: our article covers all of them.

PythonVulnerabilities

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 8.5 CVSS 4.0 base score from the CNA (vulncheck.com)

An attacker without an account can exploit this with local access if a user views or visits something.

Attack from
local access (a logged-in user, or a malicious file opened on the device)
Attack complexity
low (no special conditions)
Special conditions
none
Login needed
no
User action needed
yes, a user must view or visit something
Impact
high on confidentiality, integrity and availability
Impact on other systems
none

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 7.8 from the CNA (vulncheck.com): CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weakness

  • CWE-502: Deserialization of Untrusted Data

Affected and fixed versions

ProductAffected versionsFixed in
HyperSpy≥ 1.4.0, < 2.6.02.6.0

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain).

Affected

  • HyperSpy

What to do

  • Check whether you run an affected product or version and apply the vendor's update or mitigation.
  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-138118?

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 classdump or a 'fn'-flagged whitelist entry, which cloudpickle.loads() (dill in 1.x) runs when the victim restores the model. Weakness type: Deserialization of Untrusted Data (CWE-502).

How severe is CVE-2026-138118?

CVE-2026-138118 has a CVSS 4.0 base score of 8.5 (high), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something.

Is CVE-2026-138118 being exploited?

Not as far as is known: CVE-2026-138118 is not in CISA's Known Exploited Vulnerabilities catalog as of November 28, 2026.

Which versions are affected by CVE-2026-138118?

HyperSpy ≥ 1.4.0, < 2.6.0 (fixed in 2.6.0).

How do I fix CVE-2026-138118?

Update to a fixed release: HyperSpy 2.6.0.

Timeline & sources

References

Related vulnerabilities & news