Skip to content
CVE PROGRAM SOURCE RECORD8.5 High

CVE-2026-138118

HyperSpy 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model Restoration

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

HyperSpy HyperSpy

Default version status: unaffected

  • 1.4.0 to < 2.6.0affected
pkg:pypi/hyperspy

References