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

State
Published
Severity
8.5 High
Published
Nov 28, 2026
Updated
Nov 28, 2026
Reserved
Nov 27, 2026

Read the record on cve.org

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.

ProductVersions
HyperSpy HyperSpy1.2.0 to before 2.6.0 Affected

Weaknesses

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

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.