CVE-2026-138117 HIGH

CVE-2026-138117: HyperSpy before 2.6.0 Code Execution via sympy.sympify() in HSPY/ZSPY Files

Vendor Hyperspy
Product HyperSpy
Weakness CWE-95 · Eval injection
Published November 28, 2026
Last update November 28, 2026

CVSS base score

8.5/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction —
Confidentiality —
Integrity —

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

What the vulnerability does

01Description

HyperSpy from 1.2.0 before 2.6.0 contains a code execution vulnerability that allows attackers to run Python code by embedding malicious expression strings evaluated with sympy.sympify(). Attackers can craft .hspy or .zspy files with malicious axis, Expression component, or twin function expressions that execute when victims call hs.load() or restore models.

Key dates

02Disclosure timeline

November 28, 2026 CVE published

Related vulnerabilities

04Related CVE