cvelo
P2 · HighCVSS 7.8EPSS 0.4%

HyperSpy 1.4.0 before 2.6.0 Insecure Deserialization RCE via Stored Model Restoration

  • CVE-2026-138118
  • GHSA-6rm7-x9w5-p3h8
  • EUVD-2026-137533

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.

Text from the CVE.org record.

Recommendation

  • HyperSpy

    • If you run a version from 1.4.0 to before 2.6.0update to 2.6.0 or laterMajor version change: expect breaking changes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • HyperSpy

    Affected versionsFixed in
    from 1.4.0 to before 2.6.02.6.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.