CVE-2026-138117
High 7.8 P4 · Monitor (17/100)HyperSpy from 1.2.0 before 2.6.0 contains a code execution vulnerability that allows attackers to run Python code by embedding malicious ex…
Confirmed facts from the sources
- CVSS
- 7.8 (High) · CVSS 3.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Scored by disclosure@vulncheck.com - Exploitation confirmed
- Not in the CISA KEV catalog
- Exploitation estimated (EPSS)
- 0.25 % · percentile 9.9 % (as of 29.11.2026)
Probability of exploitation in the next 30 days – an estimate by FIRST, not confirmation. - Public exploit
- No reference to a public exploit.
- Fix
- No fix known
- Monitored technologies
- No monitored technology
Description (source)
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 products and versions
| Vendor / product | Affected versions | Fixed in | Source |
|---|---|---|---|
| pip: hyperspy | >= 1.2.0, < 2.6.0 | — | nvd |
Versions as published. “Fixed in” only where a source names the version explicitly.
Recommended mitigation
The sources name no fix or mitigation yet.
In general: check your versions, update to a fixed version, limit exposure until then and follow the vendor guidance.
AI interpretation
No AI interpretation yet – it is created for urgent advisories of monitored technologies. The facts above apply regardless.
Why this priority?: P4 · Monitor (17/100)
- Estimated exploitation probability 0.25 % (EPSS, percentile 9.9 %) – an estimate, not confirmation (+0)
- Technical severity: CVSS 7.8 (HIGH) – on its own not a reason for top priority (+12)
- No fix known – mitigations needed (+5)
Priority is a general assessment from CVSS, KEV, EPSS, exploits, relevance and fix availability. Whether a specific environment is affected depends on its versions, configuration and exposure.
Original advisories and links
- Advisory https://nvd.nist.gov/vuln/detail/CVE-2026-138117 · nvd
- Reference https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/_components/expression.py#L58-L6… · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/axes.py#L1031-L1071 · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/component.py#L205-L217 · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/commit/973c9f9ce5937a022afe718f4f63c410eb96539e · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/commit/fe484c936b9a1d425813e145298f9eeb1d83abf6 · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/issues/3699 · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/releases/tag/v2.6.0 · disclosure@vulncheck.com
- Reference https://github.com/hyperspy/hyperspy/security/advisories/GHSA-632c-gw75-99r3 · disclosure@vulncheck.com
- Reference https://www.vulncheck.com/advisories/hyperspy-before-2.6.0-code-execution-via-sympy-sympif… · disclosure@vulncheck.com