Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft .ckpt with pickle __reduce__ gadget
-
DeliveryDeliver checkpoint to victim (hub/share/download)
-
ExploitVictim calls load_checkpoint
-
Executiontorch.load deserializes with weights_only=False
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-137350
GHSA-58rq-hrhw-p349
NVD
CVE.org
EPSS
VulDB
Exploit-DB