PyPI
CVE-2026-138117
HyperSpy before 2.6.0 Code Execution via sympy.sympify() in HSPY/ZSPY Files
- Severity
- High 8.5
- Published
- 28 Nov 2026
- Last changed
- 28 Nov 2026
- Added to UpHeron
- 28 Nov 2026
- Fixed in
- 2.6.0
- Exploit chance
- 0.3% in the next 30 daysHigher than 9% of CVEs. EPSS by FIRST, 29 Nov 2026
- Weakness
- Eval injection (CWE-95)
- Attack
- Needs local access · No login needed · Needs someone to view a page or file
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
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- Sources
- CVE Program
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 software
| Software | Affected versions |
|---|---|
hyperspyPyPI · osv:PyPI:hyperspy |
|
About hyperspy
- Weekly downloads (PyPI)
- 20,149PyPI Stats, 28 Nov 2026
Vulnerabilities in hyperspy
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-138118HyperSpy 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model RestorationHigh 8.5 28 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-138117