Code Execution Vulnerability in HyperSpy by HyperSpy
CVE-2026-138117

8.5HIGH

Key Information:

Vendor

Hyperspy

Status
Vendor
CVE Published:
28 November 2026

What is CVE-2026-138117?

HyperSpy, in versions prior to 2.6.0, is susceptible to a code execution vulnerability where attackers can exploit the sympy.sympify() function. By crafting malicious .hspy or .zspy files with manipulated axis, Expression components, or twin function expressions, an attacker can execute arbitrary Python code upon the victim loading these files using hs.load() or restoring models. This poses a significant risk as it can lead to unauthorized access and compromise the integrity of the user's system.

Affected Version(s)

HyperSpy 1.2.0 < 2.6.0

References

CVSS V4

Score:
8.5
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Dilanka Kaushal Hewage
Nils Jordan
.