ZeroDay Brief
Happy holidays from ZeroDay Brief!
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 fil…

CVSS
7.8High
Chance of exploitation (EPSS)
0.43%
Published
Nov 28, 2026
In the news
Not yet
More from this vendor

What to do

A serious unsafe deserialization flaw in Hyperspy that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.

Action: Check the vendor's advisory in the references and apply updates as soon as they are available.

Fixed in: 2.6.0

Affected versions
Hyperspy
1.4.0 to before 2.6.0

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.

CWE-502

Affected products

Get alerts for these →

Timeline 1

Latest change: CVE-2026-138118 published (CVSS 7.8) (Nov 27, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Sat, Nov 28, 2026

  1. CVECVE-2026-138118 published (CVSS 7.8)CVE Program · 02:17 UTC

References 11

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

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”