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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-502"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138118.json"
}{
"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"
}
]
}