CVE-2026-138117

7.8High

Published Nov 28, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.8CVSS

High

0CVSS v3.110

Attack vector
Local
Complexity
Low
Privileges
None
User action
Required
Impact
Full C/I/A compromise
Weakness
CWE-95

What an attacker gets

Attackers can execute arbitrary Python code on your system. This happens when a user opens a malicious .hspy or .zspy file using hs.load().

Root cause

The library uses sympy.sympify() to evaluate expressions from file inputs without proper sanitization.

Affected versions

HyperSpy 1.2.0 through 2.5.x

CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to HyperSpy 2.6.0 or later. Do not open untrusted .hspy or .zspy files until the package is updated.

remediation — bash
$ pip install --upgrade hyperspy

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-138117

More fully triaged vulnerabilities you may want to check next.