Skip to content

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

HighCVSS 8.5 EPSS 0.25%
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
pypi hyperspy >= 1.2.0, < 2.6.0 2.6.0 Fixed

Affected products

ProductAffected versionsFixed in
pypi hyperspy >= 1.2.0, < 2.6.0 2.6.0

References