high8.5
CVE-2026-137998
Detoxify 0.5.3 through 0.5.4 contains an insecure deserialization vulnerability in load_checkpoint that allows attackers to execute code by supplying a crafted…
Impact
Detoxify 0.5.3 through 0.5.4 contains an insecure deserialization vulnerability in load_checkpoint that allows attackers to execute code by supplying a crafted checkpoint file. Attackers can embed a pickle __reduce__ gadget in a .ckpt file loaded via torch.load with weights_only=False to run code with the user's privileges.
An attacker can exploit this with local access to the system, without logging in, but a user has to be involved, for example by viewing content. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products (Unitaryai)
| Product | Affected versions |
|---|---|
| Detoxify | from 0.5.3 through 0.5.4 Version 0.5.3 ≤0.5.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/unitaryai/detoxify/issues/145
- https://github.com/unitaryai/detoxify/pull/146
- https://github.com/unitaryai/detoxify/commit/4eb4af915fc47c945a9fcd776c7e8412e5b05a76
- https://github.com/unitaryai/detoxify/blob/v0.5.4/detoxify/detoxify.py#L38-L43
- https://www.vulncheck.com/advisories/detoxify-0.5.3-through-0.5.4-insecure-deserialization-rce-via-load-checkpoint
- https://github.com/advisories/GHSA-58rq-hrhw-p349
- https://nvd.nist.gov/vuln/detail/CVE-2026-137998