Detoxify 0.5.3 through 0.5.4 Insecure Deserialization RCE via load_checkpoint
- State
- Published
- Severity
- 8.5 High
- Published
- Nov 27, 2026
- Updated
- Nov 27, 2026
- Reserved
- Nov 27, 2026
Description
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.
| Product | Versions |
|---|---|
| Detoxify unitaryai | 0.5.3 through 0.5.4 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.5 High | VulnCheck | |
| 3.1 | 7.8 High | VulnCheck |
Weaknesses
- CWE-502 Deserialization of Untrusted Data
References
- https://github.com/unitaryai/detoxify/issues/145Issue Tracker
- https://github.com/unitaryai/detoxify/pull/146Issue TrackerPatch
- https://github.com/unitaryai/detoxify/commit/4eb4af915fc47c945a9fcd776c7e8412e5b05a76Patch
- https://github.com/unitaryai/detoxify/blob/v0.5.4/detoxify/detoxify.py#L38-L43Technical Details
- VulnCheck Advisory: Detoxify 0.5.3 through 0.5.4 Insecure Deserialization RCE via load_checkpointThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.