Read the docs

Insecure deserialization in HyperSpy lets model files run code

Priority HIGH 72CWE-502Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-502.

Summary

HyperSpy from 1.4.0 before 2.6.0 contains an insecure deserialization flaw (CWE-502) in stored model restoration. A local attacker can supply a crafted .hspy or .zspy file with a malicious pickle payload that runs arbitrary Python code when a victim restores the model.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00223 7th percentileScored 2026-11-30
Fix Fixed HyperSpy (HyperSpy): 2.6.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
HyperSpyHyperSpy1.4.0 to before 2.6.02.6.0Patch availableCNA
  • HyperSpy VendorHyperSpy Affected 1.4.0 to before 2.6.0 Fixed in 2.6.0 Patch available CNA

Remediation

Update HyperSpy to version 2.6.0, the fixed version.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA HyperSpy (HyperSpy) Fixed in 2.6.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    HyperSpy 2.6.0

    2 records Highest priority Priority HIGH 1 HIGH, 1 LOW

    Other records, highest priority first

    • TI-2026-99395 Code execution in HyperSpy via sympy.sympify() in HSPY and ZSPY filesPriority LOW 36

Timeline

  1. 2026-11-28 Threatist record created from CVE-2026-138118
  2. 2026-11-28 Alias added: GHSA-6rm7-x9w5-p3h8
  3. 2026-11-30 CISA SSVC decision points changed

References

  • TI-2026-99395 Code execution in HyperSpy via sympy.sympify() in HSPY and ZSPY files CVSS 4.0HIGH 8.5

Sources