CVE-2026-138117 PUBLISHED

HyperSpy before 2.6.0 Code Execution via sympy.sympify() in HSPY/ZSPY Files

Assigner: VulnCheck
Reserved: 27.11.2026 Published: 28.11.2026 Updated: 28.11.2026

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.

Metrics

CVSS 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
CVSS Score: 8.5

Product Status

Vendor HyperSpy
Product HyperSpy
Versions Default: unaffected
  • affected from 1.2.0 to 2.6.0 (excl.)

Credits

  • Dilanka Kaushal Hewage finder
  • Nils Jordan finder

References

Problem Types

  • Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') CWE