CVE-2026-138117
HyperSpy before 2.6.0 Code Execution via sympy.sympify() in HSPY/ZSPY Files
CVSS Score
7.8
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-95 |
| Vendor | hyperspy |
| Product | hyperspy |
| Published | Nov 28, 2026 |
Stay Ahead of the Next One
Get instant alerts for hyperspy hyperspy
Be the first to know when new high vulnerabilities affecting hyperspy hyperspy are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Affected Versions
HyperSpy / HyperSpy
1.2.0 < 2.6.0
References
github.com: https://github.com/hyperspy/hyperspy/security/advisories/GHSA-632c-gw75-99r3 github.com: https://github.com/hyperspy/hyperspy/commit/fe484c936b9a1d425813e145298f9eeb1d83abf6 github.com: https://github.com/hyperspy/hyperspy/commit/973c9f9ce5937a022afe718f4f63c410eb96539e github.com: https://github.com/hyperspy/hyperspy/releases/tag/v2.6.0 github.com: https://github.com/hyperspy/hyperspy/issues/3699 github.com: https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/axes.py#L1031-L1071 github.com: https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/_components/expression.py#L58-L66 github.com: https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/component.py#L205-L217 vulncheck.com: https://www.vulncheck.com/advisories/hyperspy-before-2.6.0-code-execution-via-sympy-sympify-in-hspy-zspy-files
Credits
Dilanka Kaushal Hewage Nils Jordan