Skip to content
CVE PROGRAM SOURCE RECORD8.5 High

CVE-2026-138117

HyperSpy before 2.6.0 Code Execution via sympy.sympify() in HSPY/ZSPY Files

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

HyperSpy HyperSpy

Default version status: unaffected

  • 1.2.0 to < 2.6.0affected
pkg:pypi/hyperspy

References