CVE-2026-138118 PUBLISHED

HyperSpy 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model Restoration

Assigner: VulnCheck
Reserved: 27.11.2026 Published: 28.11.2026 Updated: 28.11.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.

Metrics

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
CVSS Score: 8.5

Product Status

Vendor HyperSpy
Product HyperSpy
Versions Default: unaffected
  • affected from 1.4.0 to 2.6.0 (excl.)

Credits

  • Dilanka Kaushal Hewage finder
  • hnwg finder

References

Problem Types

  • Deserialization of Untrusted Data CWE