CVE-2026-138118

7.8High

Published Nov 28, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.8CVSS

High

0CVSS v3.110

Attack vector
Local
Complexity
Low
Privileges
None
User action
Required
Impact
Full C/I/A compromise
Weakness
CWE-502

What an attacker gets

Attackers can execute arbitrary Python code by providing a malicious .hspy or .zspy file. A user must open or restore a crafted model file for the exploit to trigger.

Root cause

The application uses insecure deserialization via cloudpickle or dill when loading stored model data.

Affected versions

HyperSpy 1.4.0 through 2.5.x

CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to HyperSpy 2.6.0 or later. Do not open model files from untrusted sources until the package is updated.

remediation — bash
$ pip install --upgrade hyperspy

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-138118

More fully triaged vulnerabilities you may want to check next.