CVE-2026-138118

Source
https://cve.org/CVERecord?id=CVE-2026-138118
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138118.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138118
Aliases
  • GHSA-j975-x368-3hrr
Published
2026-11-28T01:43:08Z
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 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model Restoration
Details

HyperSpy from 1.4.0 before 2.6.0 contains an insecure deserialization vulnerability that allows attackers to execute arbitrary Python code by supplying crafted stored-model data in .hspy or .zspy files. Attackers can embed a malicious pickle payload in a component's _class_dump or a 'fn'-flagged _whitelist entry, which cloudpickle.loads() (dill in 1.x) runs when the victim restores the model.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-502"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138118.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.4.0"
                },
                {
                    "fixed":  "2.6.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "6382ae0ff5b0000a7aad5dc2f4b997b1d8dccb09"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "28fdf2d0320c76c5d57a57e323ac510b2005e13d"
                }
            ],
            "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-138118.json"