Technical impact
HyperSpy versions 1.4.0 up to but not including 2.6.0 can be tricked into executing arbitrary Python code when a malicious .hspy or .zspy file is restored. The flaw is due to the use of cloudpickle (or dill in earlier releases) to deserialize model data without validating the payload, allowing an attacker to craft a pickle that runs code during restoration. This flaw can compromise the confidentiality, integrity, and availability of the host system if an untrusted file is opened.
Affected Systems
Vendor HyperSpy: HyperSpy is impacted by this issue. All releases from 1.4.0 up to but not including 2.6.0 are affected. Users running any of these versions on Windows, Linux, or macOS are vulnerable.
Risk and Exploitability
The CVSS score is 8.5, indicating a high severity of potential damage. EPSS data is not available, but the vulnerability has not yet appeared in the CISA KEV list. The likely attack vector is local file injection: an attacker supplies a crafted .hspy or .zspy file, and when a user opens it in HyperSpy, the unsafe deserialization routine executes malicious code. No public exploit has been documented, yet the severity rating suggests the potential for widespread compromise if the flaw were exploited by a skilled adversary.