HyperSpy before 2.6.0 Code Execution via sympy.sympify() in HSPY/ZSPY Files
Summary
| CVE | CVE-2026-138117 |
|---|---|
| State | PUBLISHED |
| Assigner | VulnCheck |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-28 02:17:33 UTC |
| Updated | 2026-11-28 02:17:33 UTC |
| 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. |
Risk And Classification
Primary CVSS: v4.0 8.5 HIGH from [email protected]
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS: 0.002500000 probability, percentile 0.098630000 (date 2026-11-29)
Problem Types: CWE-95 | CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 8.5 | HIGH | 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/E:X/C... |
| 4.0 | CNA | CVSS | 8.5 | HIGH | 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 |
| 3.1 | [email protected] | Primary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | CNA | CVSS | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
CVSS v4.0 Breakdown
Attack Vector
LocalAttack Complexity
LowAttack Requirements
NonePrivileges Required
NoneUser Interaction
PassiveConfidentiality
HighIntegrity
HighAvailability
HighSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/hyperspy/hyperspy/security/advisories/GHSA-632c-gw75-99r3 | [email protected] | github.com | |
| github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/_components/expression.py | [email protected] | github.com | |
| github.com/hyperspy/hyperspy/releases/tag/v2.6.0 | [email protected] | github.com | |
| github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/axes.py | [email protected] | github.com | |
| github.com/hyperspy/hyperspy/issues/3699 | [email protected] | github.com | |
| github.com/hyperspy/hyperspy/commit/fe484c936b9a1d425813e145298f9eeb1d83... | [email protected] | github.com | |
| github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/component.py | [email protected] | github.com | |
| www.vulncheck.com/advisories/hyperspy-before-2.6.0-code-execution-via-sympy-sym... | [email protected] | www.vulncheck.com | |
| github.com/hyperspy/hyperspy/commit/973c9f9ce5937a022afe718f4f63c410eb96... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Dilanka Kaushal Hewage (en)
CNA: Nils Jordan (en)
There are currently no legacy QID mappings associated with this CVE.