Insecure Deserialization Vulnerability in Detoxify Product by UnitaryAI
CVE-2026-137998
8.5HIGH
What is CVE-2026-137998?
The Detoxify library versions 0.5.3 and 0.5.4 are susceptible to an insecure deserialization vulnerability that arises when loading crafted checkpoint files. Specifically, by embedding a malicious pickle reduce gadget within a .ckpt file and utilizing the torch.load method with weights_only=False, attackers can execute arbitrary code with the privileges of the user running the application. This critical flaw underscores the importance of validating and sanitizing input files to mitigate potential exploitation risks.
Affected Version(s)
Detoxify 0.5.3 <= 0.5.4
