P2 · HighCVSS 7.8EPSS 0.4%
HyperSpy before 2.6.0 Code Execution via sympy.sympify() in HSPY/ZSPY Files
- CVE-2026-138117
- GHSA-9qmf-m9r2-5w65
- EUVD-2026-137534
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.
Text from the CVE.org record.
Recommendation
HyperSpy
- If you run a version from 1.2.0 to before 2.6.0update to 2.6.0 or laterMajor version change: expect breaking changes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
HyperSpy
Affected versions Fixed in from 1.2.0 to before 2.6.0 2.6.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.