{"id":"CVE-2026-138117","aliases":[],"kind":"cve","tier":"hot","status":"published","title":"HyperSpy before 2.6.0 Code Execution via sympy.sympify() in HSPY/ZSPY Files","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.","ai_summary":{"text":"An attacker can run arbitrary Python code by crafting .hspy or .zspy files that HyperSpy evaluates via sympy.sympify() when loaded with hs.load().","model":"claude-haiku-5-5","label":"AI summary"},"severity":"high","cvss":{"score":8.5,"version":"4.0","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","source":"CNA"},"scores":[{"score":8.5,"source":"cna","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","version":"4.0"},{"score":7.8,"source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"score":8.5,"source":"cna","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/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","version":"4.0"}],"cwe":["CWE-95"],"remote":false,"remote_unauth":false,"epss":null,"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[],"affected_products":[{"source":"cvelist","vendor":"HyperSpy","product":"HyperSpy","versions":">= 1.2.0, < 2.6.0"}],"ai_versions":{"affected":[{"text":"HyperSpy from 1.2.0 before 2.6.0","quote":"HyperSpy from 1.2.0 before 2.6.0","product":"hyperspy"}],"fixed":[{"quote":"before 2.6.0","product":"hyperspy","version":"2.6.0"}],"model":"claude-haiku-5-5","label":"AI-extracted versions"},"mitigation":"Upgrade HyperSpy to 2.6.0 or later.","technologies":[{"slug":"python","name":"Python","method":"ai"}],"references":[{"url":"https://github.com/hyperspy/hyperspy/security/advisories/GHSA-632c-gw75-99r3","kind":"vendor"},{"url":"https://github.com/hyperspy/hyperspy/commit/fe484c936b9a1d425813e145298f9eeb1d83abf6","kind":"patch"},{"url":"https://github.com/hyperspy/hyperspy/commit/973c9f9ce5937a022afe718f4f63c410eb96539e","kind":"patch"},{"url":"https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/axes.py#L1031-L1071","kind":"article"},{"url":"https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/_components/expression.py#L58-L66","kind":"article"},{"url":"https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/component.py#L205-L217","kind":"article"},{"url":"https://github.com/hyperspy/hyperspy/releases/tag/v2.6.0","kind":"other"},{"url":"https://github.com/hyperspy/hyperspy/issues/3699","kind":"other"},{"url":"https://www.vulncheck.com/advisories/hyperspy-before-2.6.0-code-execution-via-sympy-sympify-in-hspy-zspy-files","kind":"other"}],"workarounds":null,"vendors":["hyperspy"],"products":["hyperspy"],"cpes":[],"published_at":"2026-11-28T01:43:09.488Z","modified_at":"2026-11-28T02:17:33.150Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138117"}],"links":{"html":"https://flawdb.com/CVE-2026-138117","markdown":"https://flawdb.com/CVE-2026-138117.md","json":"https://flawdb.com/api/v1/entries/CVE-2026-138117"}}