Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft pickle invoking torch bottleneck gadget
-
DeliveryPublish/deliver as trusted model file
-
ExploitVictim scans with vulnerable picklescan
-
ExecutionScanner returns clean (false negative)
-
PersistVictim deserializes model
-
ImpactArbitrary code executes as victim
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 that the victim (1) uses picklescan before 0.0.30 as their vetting step for an untrusted pickle/PyTorch model file, and (2) subsequently deserializes that same file - matching CVSS UI:P (the victim must open/load the artifact) and AT:P (a specific attack requirement). The concrete technical prerequisite is that PyTorch is installed in the loading environment so that the torch.utils.bottleneck.__main__.run_autograd_prof callable is importable during unpickling; without torch present, the gadget cannot resolve. Limiting factors that reduce real-world risk: it is not a network-service RCE, it needs the malicious model to reach and be loaded by the victim, and it only harms organizations that actually rely on picklescan as their safety gate (a plain torch.load would be compromised with or without the scanner). |
| Impact | This is a real but conditional supply-chain risk rather than a mass-exploitable network flaw. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H) scores 7.6 and correctly encodes the gating factors: AT:P (a specific attack requirement - the victim must actually route the file through picklescan and then load it) and UI:P (passive user interaction - the victim opens/deserializes the model). No EPSS score, KEV entry, or POC was provided, so probability signals are absent; the honest read is that exploitation is targeted and opportunistic (poisoned models on model hubs) rather than automatable at scale. A notable nuance: the danger only materializes for organizations that specifically trust picklescan as their safety check - for them a false negative is worse than no scan, because it converts a manual caution into false confidence. There is no direct conflict in the data, but the network attack vector should not be read as 'internet-facing service RCE'; the true delivery channel is a malicious model artifact. |
| Exploit ScenarioDerived | An attacker publishes a trojanized PyTorch model to a public model hub or sends it to a target, crafting the pickle to invoke torch.utils.bottleneck.__main__.run_autograd_prof so it runs their code on load. A victim runs picklescan (pre-0.0.30) on the file, receives a clean verdict, and then calls torch.load()/pickle.load(), at which point the payload executes with the victim's privileges. No public POC is referenced, but the technique mirrors known picklescan gadget-bypass classes. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 04, 2026
Malicious-pickle detection bypass in picklescan before 0.0.30 allows attackers to smuggle undetected remote code execution payloads past the scanner by abusing the torch.utils.bottleneck.__main__.run_autograd_prof gadget, which was absent from picklescan's dangerous-import blocklist. Because picklescan is used as a security gate to vet untrusted ML model files, a false-negative here means a crafted model passes as safe and executes arbitrary code when subsequently deserialized. Reported by VulnCheck via GHSA-4whj-rm5r-c2v8; no public exploit identified at time of analysis, and it is not on CISA KEV.
RemediationAI
Upgrade picklescan to version 0.0.30 or later, which adds torch.utils.bottleneck.__main__.run_autograd_prof to its detection set (Vendor-released patch: 0.0.30); pin this minimum in requirements/lockfiles and rebuild any container images or CI/CD scanners that bundle the library. Follow the fix per GHSA-4whj-rm5r-c2v8 and the VulnCheck advisory linked above. Because this is a detection-bypass rather than a code-execution bug in picklescan itself, do not treat the scanner as a sole control: prefer loading models with a safe format (safetensors) instead of pickle, and where pickle is unavoidable, deserialize untrusted models only in a sandboxed, network-isolated, least-privilege environment. As a compensating control until upgrade, block or quarantine externally sourced .bin/.pt/.pkl model files and require provenance/signature verification of model artifacts - the trade-off is added friction ingesting third-party models from hubs.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
picklescan is a Python security tool that statically inspects Python pickle files (commonly PyTorch .bin/.pt model weights) for calls to known-dangerous callables before a user loads them. The weakness is CWE-502 (Deserialization of Untrusted Data) applied at the scanner layer: pickle's opcode stream can invoke arbitrary importable callables during unpickling, and picklescan relies on a blocklist of such callables. The torch.utils.bottleneck.__main__.run_autograd_prof function - part of PyTorch's bottleneck profiling utility - was not enumerated in that blocklist, so a REDUCE/GLOBAL opcode referencing it evaded detection. The only affected product per CPE is cpe:2.3:a:picklescan:picklescan (all versions before 0.0.30); the downstream impact lands on any host that unpickles the file, typically a PyTorch/ML pipeline.
Know when Picklescan 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:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
AC:H because exploitation depends on the victim routing an untrusted model through vulnerable picklescan and having torch importable; UI:R for the victim loading the file; full RCE gives C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
picklescan before 0.0.30 fails to detect malicious pickle files that invoke torch.utils.bottleneck.__main__.run_autograd_prof function. Attackers can embed undetected code in pickle files that executes during deserialization, enabling remote code execution.
Executive ViewAI
picklescan before version 0.0.30 contains a detection bypass (CVE-2025-71345) that allows attackers to deliver remote code execution payloads disguised as safe ML model files. Organizations relying on picklescan to validate untrusted model inputs face direct compromise risk, as malicious models will execute arbitrary code during deserialization while falsely appearing secure.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict ML model sources to pre-approved, manually-reviewed repositories; (2) execute model deserialization in isolated sandboxed environments with restricted network access; (3) implement supplementary static analysis or code review of model files before deployment; (4) deploy network segmentation to limit RCE blast radius; (5) enable comprehensive logging and monitoring of all model loading and deserialization operations.
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Related Vulnerabilities in picklescan Malicious Pickle Detection Bypass
View all 16More in Picklescan
View allRemote code execution against users of picklescan versions prior to 1.0.4 is achievable by smuggling any blocked functio
An Improper Handling of Exceptional Conditions vulnerability in the ZIP archive scanning component of mmaitre314 pickles
A Protection Mechanism Failure vulnerability in mmaitre314 picklescan versions up to and including 0.0.30 allows a remot
An Improper Input Validation vulnerability in the scanning logic of mmaitre314 picklescan versions up to and including 0
Detection bypass in picklescan prior to 0.0.29 allows attackers to smuggle remote code execution payloads through pickle
Detection bypass in picklescan versions before 0.0.25 allows attackers to embed remote code execution payloads in pickle
Detection bypass in picklescan before 0.0.28 allows attackers to embed malicious torch.jit.unsupported_tensor_ops.execWr
Detection bypass in picklescan before 0.0.28 allows attackers to smuggle arbitrary code through pickle files by abusing
Detection bypass in picklescan before 0.0.29 allows malicious pickle files to evade scanning by abusing the undetected i
Detection bypass in picklescan versions before 0.0.30 allows malicious pickle files to evade security scanning by using
Detection bypass in picklescan versions prior to 0.0.29 allows attackers to smuggle arbitrary code execution payloads th
Detection bypass in picklescan before 0.0.33 allows attackers to smuggle arbitrary code through malicious pickle files b
EUVD-2025-210412
GHSA-vwrw-h95r-ch46
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB