Skip to main content

Detoxify EUVDEUVD-2026-137350

| CVE-2026-137998 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-11-27 VulnCheck GHSA-58rq-hrhw-p349
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft .ckpt with pickle __reduce__ gadget
  2. Delivery
    Deliver checkpoint to victim (hub/share/download)
  3. Exploit
    Victim calls load_checkpoint
  4. Execution
    torch.load deserializes with weights_only=False
  5. Impact
    Execute arbitrary code as the user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to load an attacker-controlled checkpoint (.ckpt) file through Detoxify's load_checkpoint function in versions 0.5.3 through 0.5.4, where torch.load (and torch.hub.load_state_dict_from_url) are called with weights_only=False, causing full pickle deserialization of the file. No attacker authentication or privileges are needed (PR:N), but exploitation is gated by user interaction - the user must actually load the malicious checkpoint - and by the local attack vector (AV:L), meaning the attacker must get the crafted file in front of the victim rather than triggering it remotely. Defenders who load only trusted, integrity-verified model weights, or who have upgraded to the patched version (which forces weights_only=True), are not exposed; the only complete fix per the vendor patch is updating to the fixed code that sets weights_only=True.

Impact

The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H) describes a local, low-complexity flaw that needs no attacker privileges but does require passive user interaction (UI:P) - namely, the victim loading an attacker-supplied checkpoint file. Impact is maximal (high confidentiality, integrity, and availability) because successful exploitation yields arbitrary code execution with the user's privileges via CWE-502 insecure deserialization. This is NOT a remote, wormable, unauthenticated-network bug: the local vector and required user action place it in the ML supply-chain / untrusted-model-file threat class rather than the internet-facing emergency class. No EPSS score was provided, there is no CISA KEV listing, and no confirmed public exploit is present in the input, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a serious-but-not-crisis priority. The mechanism is firmly confirmed by vendor source: the patch diff flips torch.load / torch.hub.load_state_dict_from_url from weights_only=False to weights_only=True. The main caveat is that real-world risk hinges entirely on whether users load checkpoint files from untrusted sources - defenders who only load first-party, integrity-verified weights face substantially lower practical risk than the 8.5 base score alone implies.

Exploit ScenarioDerived

An attacker publishes or supplies a malicious .ckpt file - for example via a model-sharing hub, shared storage, or a poisoned download - with a pickle __reduce__ gadget embedded. When a victim loads it through Detoxify's load_checkpoint, torch.load runs with weights_only=False and unpickles the gadget, executing arbitrary code with the victim's privileges. No working exploit code is confirmed in the available sources, but the __reduce__ pickle technique is well understood and the vulnerable call path is confirmed in the vendor source.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 27, 2026

Code execution in Detoxify 0.5.3 through 0.5.4: load_checkpoint() deserializes checkpoint files with weights_only=False, so a .ckpt file carrying a pickle __reduce__ gadget is unpickled in full and executes with the victim's privileges. No attacker privileges are needed, but the vector is local and interaction-gated - the victim must actually load the crafted checkpoint - so exposure is limited to users or pipelines that load model weights from untrusted or unverified sources. No public exploit code has been identified at time of analysis; an upstream fix that forces weights_only=True is available, and the priority is to patch this week.

RemediationAI

Apply the upstream fix: pull request https://github.com/unitaryai/detoxify/pull/146, commit 4eb4af915fc47c945a9fcd776c7e8412e5b05a76, converts both torch.load and torch.hub.load_state_dict_from_url calls in detoxify/detoxify.py to weights_only=True - no patched release tag is listed in the supplied data, so verify that the installed Detoxify build actually contains that commit rather than assuming a version number, and track the vendor advisory at https://www.vulncheck.com/advisories/detoxify-0.5.3-through-0.5.4-insecure-deserialization-rce-via-load-checkpoint and the GitHub issue at https://github.com/unitaryai/detoxify/issues/145 for a fixed release. Until the fixed code is deployed, the operative control is supply-chain hygiene rather than filtering: load only checkpoints that come from trusted sources and have been integrity-verified, since a caller who never feeds untrusted weights into load_checkpoint is not exposed, and note that updating is the only complete fix per the vendor patch - any interim practice of pre-validating .ckpt files leaves the deserialization path itself intact.

Affected VersionsENISA

Detoxify 0.5.3 ≤0.5.4

Affected Packages

euvd detoxify no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-502 (deserialization of untrusted data) rooted in the PyTorch checkpoint format itself: .ckpt files are pickle streams, and torch.load() reconstructs arbitrary Python objects unless invoked with weights_only=True. Detoxify's load_checkpoint() explicitly passed weights_only=False, so a crafted file's __reduce__ method is honored during unpickling and yields arbitrary code execution at the point of loading. The upstream diff (PR #146, commit 4eb4af9) confirms two affected call sites in detoxify/detoxify.py - the local torch.load(checkpoint, ...) branch and the torch.hub.load_state_dict_from_url(checkpoint_path, ...) branch - both of which are switched from weights_only=False to weights_only=True; the accompanying test change shows the same flag correction in the model-loading test path. The affected package is identified by CPE cpe:2.3:a:unitaryai:detoxify, the Unitary AI Detoxify library distributed via PyPI and GitHub. Because the trigger is ordinary unpickling with no sandbox or validation step, successful exploitation is determined purely by control over the checkpoint bytes that reach the loader; the underlying mechanics of the gadget are not otherwise described in the available sources.

Know when Detoxify gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.5 HIGH
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
vuln.today AI 7.8 HIGH

Attacker supplies a malicious local checkpoint file (AV:L) that the victim must load (UI:R); no attacker privileges are needed (PR:N) and arbitrary code execution yields full C/I/A impact.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Detoxify versions 0.5.3 through 0.5.4 contain a code execution vulnerability that allows an attacker to execute arbitrary code with the victim's privileges when a crafted checkpoint file is loaded via load_checkpoint(). This impacts users and automated pipelines that load model weights from untrusted or unverified sources, potentially leading to system compromise, data breach, or unauthorized access. Leadership should prioritize patching this week to mitigate the risk of exploitation through malicious model files.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 89% exploitable
Prevalence
Low
niche open-source ML toxic-comment-detection Python library, limited production footprint
Social Media
3
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy