{"id":"CVE-2026-138118","aliases":["CVE-2026-138118"],"related":[],"kind":"vulnerability","state":"published","title":"HyperSpy 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model Restoration","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-28T01:43:08.379Z","modified":"2026-11-30T17:18:49.530Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.5,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.5,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"type":"semver","introduced":"1.4.0","fixed":"2.6.0","status":"affected"}],"vendor":"HyperSpy","product":"HyperSpy","repo":"https://github.com/hyperspy/hyperspy","source":"cvelist"}],"references":[{"url":"https://github.com/hyperspy/hyperspy/security/advisories/GHSA-j975-x368-3hrr","tags":["exploit","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/hyperspy/hyperspy/commit/6382ae0ff5b0000a7aad5dc2f4b997b1d8dccb09","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/hyperspy/hyperspy/commit/28fdf2d0320c76c5d57a57e323ac510b2005e13d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/hyperspy/hyperspy/releases/tag/v2.6.0","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/hyperspy/hyperspy/issues/3699","tags":["exploit","issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L106-L146","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L645-L661","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/misc/export_dictionary.py#L187-L207","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/hyperspy-1.4.0-before-2.6.0-insecure-deserialization-rce-via-stored-model-restoration","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Dilanka Kaushal Hewage","hnwg"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-11-30T16:40:24.712Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138118","url":"https://www.cve.org/CVERecord?id=CVE-2026-138118","licence":"CVE Terms of Use","modified":"2026-11-30T16:40:38.218Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138118","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138118","licence":"Public domain","modified":"2026-11-30T17:18:49.530Z"}],"updatedAt":"2026-11-30T17:32:18.914Z","epss":{"score":0.00425,"percentile":0.38723,"date":"2026-12-01T12:00:22.000Z"}}