{"id":"CVE-2026-138118","aliases":[],"url":"https://o3.security/vulnerability/CVE-2026-138118","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…","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.","published":"2026-11-28T02:17:33.327","modified":"2026-11-28T02:17:33.327","cvss":{"score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[],"fix":{"url":"https://github.com/hyperspy/hyperspy/commit/28fdf2d0320c76c5d57a57e323ac510b2005e13d","label":"hyperspy/hyperspy@28fdf2d"},"references":[{"type":"WEB","url":"https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/misc/export_dictionary.py#L187-L207"},{"type":"WEB","url":"https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L106-L146"},{"type":"WEB","url":"https://github.com/hyperspy/hyperspy/blob/v2.5.0/hyperspy/model.py#L645-L661"},{"type":"WEB","url":"https://github.com/hyperspy/hyperspy/commit/28fdf2d0320c76c5d57a57e323ac510b2005e13d"},{"type":"WEB","url":"https://github.com/hyperspy/hyperspy/commit/6382ae0ff5b0000a7aad5dc2f4b997b1d8dccb09"},{"type":"WEB","url":"https://github.com/hyperspy/hyperspy/issues/3699"},{"type":"WEB","url":"https://github.com/hyperspy/hyperspy/releases/tag/v2.6.0"},{"type":"WEB","url":"https://github.com/hyperspy/hyperspy/security/advisories/GHSA-j975-x368-3hrr"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/hyperspy-1.4.0-before-2.6.0-insecure-deserialization-rce-via-stored-model-restoration"}],"provenance":{"sources":["OSV.dev","NVD","FIRST.org (EPSS)"],"lastVerified":"2026-11-28T02:17:33.327"}}