Skip to main content
CVE-2026-138117VulnerabilityPublished

HyperSpy from 1.2.0 before 2.6.0 contains a code execution vulnerability that allows attackers to run Python code by

Source GCVE Database

0
Compare
Authoritative record:CVE-2026-138117· High 8.5

Not known to be exploited · CVSS 8.5 High : upgrade to 2.6.0 soon.

Data as of 28 Nov 2026, 04:46 UTC

CVSS 4.0 base score
8.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.08.5
CNA (VulnCheck)CVSS 3.17.8
Patch
Available – fixed in 2.6.0
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 28 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 27 Nov 2026.

What to do

Upgrade HyperSpy to 2.6.0.

Affected software

ProductAffectedFixed in
HyperSpyHyperSpyAffected
  • >=1.2.0 <2.6.0
Fixed in
  • 2.6.0
PyPIHyperSpypkg:pypi/HyperSpyOther threatsAffected
  • >=1.2.0 <2.6.0
Fixed in
  • 2.6.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

If you cannot patch yet, avoid loading untrusted .hspy or .zspy files.

Description

HyperSpy versions from 1.2.0 up to but not including 2.6.0 contain a code execution vulnerability. This flaw allows attackers to execute arbitrary Python code by embedding malicious expressions that are evaluated by the sympy.sympify() function. Maliciously crafted .hspy or .zspy files with harmful axis, Expression component, or twin function expressions can trigger code execution when loaded via the hs.load() function or during model restoration.

References

Community reviews

Loading reviews…