Code Execution Vulnerability in HyperSpy by HyperSpy
CVE-2026-138117
8.5HIGH
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
