CVE-2026-137998

Detoxify 0.5.3 through 0.5.4 Insecure Deserialization RCE via load_checkpoint

Published Nov 27, 2026 CVSS 4.0 · 8.5 High EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is an insecure deserialization flaw in the load_checkpoint function of Detoxify. By feeding a specially crafted checkpoint file containing a pickle __reduce__ gadget, an attacker can cause the underlying torch.load routine to execute arbitrary Python code with the privileges of the running process. This results in remote code execution, potentially allowing full control over systems where Detoxify is executed.

Affected Systems

Affected software is the unitaryai Detoxify package, versions 0.5.3 through 0.5.4. Users running either of those releases are vulnerable until they apply an updated version.

Risk and Exploitability

The CVSS score is 8.5, indicating high severity. EPSS is not reported, so the exploitation probability cannot be quantified but the lack of availability does not imply low risk. The vulnerability is not listed in CISA KEV, yet the ability to run arbitrary code poses a significant threat. Attackers must supply a malicious checkpoint file; no network exposure is required, but in deployments where users can upload or load checkpoints, the risk is elevated. Local injection of the file or leveraging any service that loads checkpoints from untrusted sources could be used.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Detoxify to the latest available version where the vulnerability is resolved.
  • Restrict the ability to load checkpoints to trusted users or remove the load_checkpoint call from production code paths until a patch is available.
  • Run Detoxify in a minimal-privilege container or sandbox to limit the effect of any inadvertent code execution.

Generated by OpenCVE AI on November 27, 2026 at 17:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Unitaryai
Unitaryai detoxify
Vendors & Products Unitaryai
Unitaryai detoxify
Type Values Removed Values Added
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.
Title Detoxify 0.5.3 through 0.5.4 Insecure Deserialization RCE via load_checkpoint
Weaknesses CWE-502
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 27, 2026, 4:10 PM
Reserved
Nov 27, 2026, 3:59 PM
Status
Received
Published
Nov 27, 2026, 5:17 PM
Modified
Nov 27, 2026, 5:17 PM