CVE-2026-138117

Source
https://cve.org/CVERecord?id=CVE-2026-138117
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138117.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138117
Aliases
  • GHSA-632c-gw75-99r3
Published
2026-11-28T01:43:09Z
Modified
2026-11-28T03:00:45Z
Severity
  • 8.5 (High) CVSS_V4 - 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 Calculator
Summary
HyperSpy before 2.6.0 Code Execution via sympy.sympify() in HSPY/ZSPY Files
Details

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.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-95"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138117.json"
}
References

Affected packages

Git / github.com/hyperspy/hyperspy

Affected ranges

Type
GIT
Repo
https://github.com/hyperspy/hyperspy
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "1.2.0"
                },
                {
                    "fixed":  "2.6.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "fe484c936b9a1d425813e145298f9eeb1d83abf6"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "973c9f9ce5937a022afe718f4f63c410eb96539e"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v2.6.0",
            "range":  [
                {
                    "fixed":  "dbd10c9e798d1bd240d74be49ab6639d9c3a4054"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

v0.*
v0.3.0b1
v0.3.0b2
v0.3.0b2.1
v0.4
v0.4.1
v0.5
v0.5.1
v0.7
v0.7.1
v0.8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138117.json"