CVE-2026-138117: HyperSpy · Eval Injection
Affects HyperSpySource CVE Database V5
Not known to be exploited · CVSS 8.5 High : upgrade to 2.6.0 soon.
Data as of 28 Nov 2026, 02:02 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 8.5 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 7.8 |
- Patch
- Available – fixed in 2.6.0
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 28 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 27 Nov 2026.
What to do
Upgrade HyperSpy to 2.6.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| HyperSpyHyperSpy | Affected
| Fixed in
|
PyPIHyperSpypkg:pypi/HyperSpyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade HyperSpy to version 2.6.0 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is indicated. Users should avoid loading untrusted .hspy or .zspy files until patched.
Description
HyperSpy versions from 1.2.0 up to but not including 2.6.0 contain a code execution vulnerability due to improper neutralization of directives in dynamically evaluated code. This flaw allows attackers to execute arbitrary Python code by embedding malicious expressions in .hspy or .zspy files, which are evaluated when loading or restoring models. The vulnerability is fixed in version 2.6.0.
References
- github.com/hyperspy/hyperspy/security/advisories/GHSA-632c-gw75-99r3 (opens in a new tab)
- github.com/hyperspy/hyperspy/commit/fe484c936b9a1d425813e145298f9eeb1d83abf6 (opens in a new tab)
- github.com/hyperspy/hyperspy/commit/973c9f9ce5937a022afe718f4f63c410eb96539e (opens in a new tab)
- github.com/hyperspy/hyperspy/releases/tag/v2.6.0 (opens in a new tab)
- github.com/hyperspy/hyperspy/issues/3699 (opens in a new tab)
- github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/axes.py (opens in a new tab)
- github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/_components/expression.py (opens in a new tab)
- github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/component.py (opens in a new tab)
- vulncheck.com/advisories/hyperspy-before-2.6.0-code-execution-via-sympy-sympify-in-hspy-zspy-files (opens in a new tab)