{"affected":[{"defaultStatus":"unaffected","ecosystem":"pypi","packageName":"hyperspy","product":"HyperSpy","source":"CNA: VulnCheck","vendor":"HyperSpy","versions":[{"lessThan":"2.6.0","status":"affected","version":"1.2.0","versionType":"semver"}]}],"cveId":"CVE-2026-138117","cwes":["CWE-95"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":8.5,"severity":"high","source":"CNA: VulnCheck","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,"severity":"high","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1795830189488,"publishedAt":1795830189488,"references":[{"source":"CNA: VulnCheck","tags":["vendor-advisory"],"url":"https://github.com/hyperspy/hyperspy/security/advisories/GHSA-632c-gw75-99r3"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/hyperspy/hyperspy/commit/fe484c936b9a1d425813e145298f9eeb1d83abf6"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/hyperspy/hyperspy/commit/973c9f9ce5937a022afe718f4f63c410eb96539e"},{"source":"CNA: VulnCheck","tags":["release-notes"],"url":"https://github.com/hyperspy/hyperspy/releases/tag/v2.6.0"},{"source":"CNA: VulnCheck","tags":["issue-tracking"],"url":"https://github.com/hyperspy/hyperspy/issues/3699"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/axes.py#L1031-L1071"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/_components/expression.py#L58-L66"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/component.py#L205-L217"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/hyperspy-before-2.6.0-code-execution-via-sympy-sympify-in-hspy-zspy-files"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/hyperspy/hyperspy/commit/fe484c936b9a1d425813e145298f9eeb1d83abf6"},{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/hyperspy/hyperspy/commit/973c9f9ce5937a022afe718f4f63c410eb96539e"}],"revision":"434900b58ff2f8ceb1a4ceaeed2a5ecd1b86219a2b8365756029740d97563666","sources":[{"modifiedAt":1795830189488,"name":"CNA: VulnCheck","retrievedAt":1795831700726,"url":"https://www.cve.org/CVERecord?id=CVE-2026-138117"}],"ssvc":null,"status":"published","title":"HyperSpy before 2.6.0 Code Execution via sympy.sympify() in HSPY/ZSPY Files","updatedAt":1795831700726}