PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-138117 HyperSpy CVE debrief

CVE-2026-138117 is a high-severity vulnerability in HyperSpy, a Python library for hyperspectral data analysis. The vulnerability allows attackers to execute arbitrary Python code by crafting malicious .hspy or .zspy files that contain malicious expressions evaluated by sympy.sympify(). This vulnerability affects HyperSpy versions 1.2.0 to 2.5.0 and can be exploited through various channels, including malicious files distributed via email or uploaded to systems that use HyperSpy. Defenders should assess exposure and prioritize patching vulnerable versions, especially in data analysis and scientific research environments.

Vendor
HyperSpy
Product
Unknown
CVSS
HIGH 8.5
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-28
Original CVE updated
2026-11-28
Advisory published
2026-11-28
Advisory updated
2026-11-28

Who should care

Defenders responsible for maintaining and securing systems that use HyperSpy should assess exposure and prioritize patching vulnerable versions. This includes data analysts, scientists, and engineers who work with hyperspectral data and use HyperSpy for data analysis.

Why it matters

CVE-2026-138117 is a high-severity vulnerability in HyperSpy that allows attackers to execute arbitrary Python code. Defenders should prioritize patching vulnerable versions and restrict the loading of untrusted files.

  • Attackers can execute arbitrary Python code, potentially leading to data breaches or system compromise
  • Vulnerable versions of HyperSpy are widely used in data analysis and scientific research
  • Exploitation requires crafted .hspy or .zspy files, which can be distributed through various channels

Technical summary

The vulnerability is caused by the use of sympy.sympify() to evaluate expressions in .hspy and .zspy files, which allows attackers to execute arbitrary Python code. The vulnerability affects HyperSpy versions 1.2.0 to 2.5.0 and can be exploited by crafting malicious axis, Expression component, or twin function expressions. Defenders should prioritize patching vulnerable versions of HyperSpy and restrict the loading of untrusted files. The exploitation requires crafted files, which can be distributed through various channels.

Defensive priority

Defenders should prioritize patching vulnerable versions of HyperSpy, specifically versions 1.2.0 to 2.5.0, and restrict the loading of untrusted .hspy or .zspy files.

Recommended defensive actions

  • Patch vulnerable versions of HyperSpy to version 2.6.0 or later
  • Restrict the loading of untrusted .hspy or .zspy files
  • Monitor for suspicious activity related to HyperSpy
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The vulnerability is caused by the use of sympy.sympify() to evaluate expressions in .hspy and .zspy files, which allows attackers to execute arbitrary Python code. The vulnerability affects HyperSpy versions 1.2.0 to 2.5.0.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-138117 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-138117

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-138117 NVD vulnerability detail

    Publisher, destination, and source semantics verified

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

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

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

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/138xxx/CVE-2026-138117.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/hyperspy/hyperspy/security/advisories/GHSA-632c-gw75-99r3

    Supplemental source - vendor-advisory

  • Source reference

    Unverified legacy reference

    URL: https://github.com/hyperspy/hyperspy/commit/fe484c936b9a1d425813e145298f9eeb1d83abf6

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/hyperspy/hyperspy/commit/973c9f9ce5937a022afe718f4f63c410eb96539e

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/hyperspy/hyperspy/releases/tag/v2.6.0

    Supplemental source - release-notes

  • Source reference

    Unverified legacy reference

    URL: https://github.com/hyperspy/hyperspy/issues/3699

    Supplemental source - issue-tracking

  • Source reference

    Unverified legacy reference

    URL: https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/axes.py

    Supplemental source - technical-description

  • Source reference

    Unverified legacy reference

    URL: https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/_components/expression.py

    Supplemental source - technical-description

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.