NetSight
high8.5

CVE-2026-138117

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 eva…

Impact

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.

An attacker can exploit this with local access to the system, without logging in, but a user has to be involved, for example by viewing content. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.

Affected products (HyperSpy)

ProductAffected versions
HyperSpy
from 1.2.0 before 2.6.0

Weakness classification

References