CVE-2026-138117
8.5high
HyperSpy before 2.6.0 Code Execution via sympy.sympify() in HSPY/ZSPY Files
- Severity
- 8.5high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| HyperSpy HyperSpy | from 1.2.0 before 2.6.0 | CVE List |
All scores
| VulnCheck | 8.5high CVSS:4.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:N |
| VulnCheck | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-138117 changed 2026-11-28 | CVE Terms of Use |
| NVD | CVE-2026-138117 changed 2026-11-28 | Public domain |