High severity7.8NVD Advisory· Published Nov 28, 2026
CVE-2026-138117
CVE-2026-138117
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
1Patches
Vulnerability mechanics
References
9- github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/_components/expression.pynvd
- github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/axes.pynvd
- github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/component.pynvd
- github.com/hyperspy/hyperspy/commit/973c9f9ce5937a022afe718f4f63c410eb96539envd
- github.com/hyperspy/hyperspy/commit/fe484c936b9a1d425813e145298f9eeb1d83abf6nvd
- github.com/hyperspy/hyperspy/issues/3699nvd
- github.com/hyperspy/hyperspy/releases/tag/v2.6.0nvd
- github.com/hyperspy/hyperspy/security/advisories/GHSA-632c-gw75-99r3nvd
- www.vulncheck.com/advisories/hyperspy-before-2.6.0-code-execution-via-sympy-sympify-in-hspy-zspy-filesnvd
News mentions
0No linked articles in our index yet.