← News

HyperSpy: arbitrary code execution

HighAI-generated2026-11-29

CVE
CVE-2026-138118
Severity
High (CVSS 7.8)
Attack conditions
With local access to the device · No account needed · A user must take some action
Exploitation probability (EPSS)
0.2% (within 30 days; FIRST EPSS, 30 November 2026)

Summary

HyperSpy versions from 1.4.0 up to but not including 2.6.0 contain a flaw that lets attackers run any Python code by providing specially crafted .hspy or .zspy model files.

Details

According to the NVD record, HyperSpy releases starting with version 1.4.0 and earlier than 2.6.0 have an insecure deserialization issue. The problem occurs when the application loads stored-model data from .hspy or .zspy files and processes a malicious pickle payload embedded in certain fields.

An attacker can craft a model file that includes a malicious payload, causing the program to execute arbitrary Python commands when the victim restores the model. This could lead to full system compromise or other malicious actions.

What to do

The source record does not name a specific patch, fixed version or workaround. General measures:

  • Follow the vendor's security advisories.
  • Apply the update when it is released.
  • Limit access to the product as much as possible, especially from the internet.

Sources

Timeline

  • 28 November 2026 NVD record published
  • 29 November 2026 This article was written