News · Unitary AI (Detoxify) · 2 min read
Event date: · Published:
Detoxify patches high-severity deserialization flaw in load_checkpoint
Unitary AI disclosed a high-severity insecure deserialization vulnerability in the load_checkpoint function of its Detoxify library, allowing code execution via crafted checkpoint files.
On November 27, 2026, GitHub Security Advisories published the GHSA-58rq-hrhw-p349 advisory (CVE-2026-137998), disclosing a high-severity insecure deserialization vulnerability in Detoxify, a toxicity-classification library from Unitary AI that is commonly used in content-moderation and LLM guardrail pipelines.
What changed
- The vulnerability affects Detoxify versions 0.5.3 through 0.5.4.
- It carries a CVSS score of 8.5 (High) and is classified as CWE-502, Deserialization of Untrusted Data.
- The flaw lives in the
load_checkpointfunction. - An attacker can embed a pickle reduce gadget inside a crafted
.ckptcheckpoint file. - Loading that file through
torch.loadwithweights_only=Falsetriggers code execution at the privilege level of the user running it. - Exploitation requires local access and passive user interaction, with no special privileges needed.
What it means for AI builders
Detoxify (unitaryai/detoxify) is widely used for toxicity detection in content-moderation and LLM guardrail pipelines, so teams that load third-party or community checkpoint files into those pipelines risk silent code execution on their own infrastructure. Because the attack only requires local access and passive user interaction rather than elevated privileges, a single untrusted .ckpt file passed through load_checkpoint can run arbitrary code at whatever privilege level the loading process has.
Sources
- Detoxify 0.5.3 through 0.5.4 Contains Insecure Deserialization Vulnerability (GitHub Security Advisories, November 27, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.