Skip to main content

picklescan CVE-2025-71369

| EUVDEUVD-2025-210422 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-07-04 VulnCheck GHSA-gphx-c88f-73gw
7.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft pickle with basichandlers reduce gadget
  2. Delivery
    Publish/deliver malicious model file
  3. Exploit
    picklescan reports file as safe
  4. Execution
    Victim deserializes with torch.load
  5. Impact
    Arbitrary code executes in victim context

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 (1) obtain an attacker-crafted pickle/PyTorch model file and (2) deserialize it (e.g., torch.load / pickle.load) while relying on picklescan < 0.0.28 to have vetted it as safe. The specific trigger is a __reduce__ payload routed through torch.utils.data.datapipes.utils.decoder.basichandlers, which pre-0.0.28 versions do not flag. Limiting factors: this is a scanner-evasion issue, not a standalone RCE - it only has security value when picklescan's verdict is trusted; it needs passive user interaction (the victim must actually load the file, UI:P) and delivery of the malicious file; PyTorch must be present in the loading environment for the referenced gadget to resolve. It does not grant execution on the scanner host merely by scanning.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N) reflects a network-delivered file that requires no privileges but does require a passive attack condition (AT:P) and passive user interaction (UI:P) - namely a victim who obtains and loads the malicious model. High confidentiality and integrity impact with no availability impact fits arbitrary code execution in the user's context. This is a real but conditional risk: the vulnerability is not itself an unauthenticated remote exploit but a detection-evasion weakness that only matters when someone relies on picklescan to certify an untrusted model as safe and then loads it. No EPSS score was provided, there is no KEV listing, and no POC was referenced, so treat scoring signals as vendor/NVD-derived rather than field-observed. The elevated danger is systemic: users who trust a 'clean' scanner verdict may drop their guard, so impact is amplified in automated model-vetting pipelines.

Exploit ScenarioDerived

An attacker publishes a PyTorch model file to a model hub or sends it to a target, crafting the embedded pickle so its __reduce__ payload executes through torch.utils.data.datapipes.utils.decoder.basichandlers. The victim runs picklescan (which reports the file as safe) and then loads the model with torch.load or pickle.load, at which point the attacker's code runs in the victim's context. No public POC was referenced, and the low attack complexity is offset by the need for the victim to scan-then-load an attacker-supplied file.

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

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

Alert me

AnalysisAIv1 – Jul 04, 2026

Safety-check bypass in picklescan before 0.0.28 allows attackers to smuggle malicious pickle files past the scanner by abusing torch.utils.data.datapipes.utils.decoder.basichandlers as a reduce gadget, so a payload the tool reports as clean still executes arbitrary code when the victim deserializes it. Because picklescan is a defensive scanner used to vet untrusted ML models (notably in Hugging Face workflows), this blind spot converts a trusted safety gate into a false sense of security. No public exploit identified at time of analysis, and it is not on CISA KEV; CVSS 4.0 base score is 7.6.

RemediationAI

Upgrade picklescan to 0.0.28 or later, which adds detection for the torch.utils.data.datapipes.utils.decoder.basichandlers reduce gadget (Vendor-released patch: 0.0.28); see GHSA-h3qp-7fh3-f8h4 and the VulnCheck advisory for details. As a compensating control until upgraded, do not treat a picklescan 'clean' result as sufficient authorization to load a model: prefer loading models via safetensors instead of pickle to eliminate the deserialization primitive entirely, or restrict pickle loading to trusted publishers only. Where pickle loading is unavoidable, sandbox the deserialization process (isolated container, dropped privileges, no outbound network) so that any bypassed payload is contained - the trade-off is added pipeline complexity and latency. Avoid relying solely on scanner allowlists, since this CVE demonstrates that any single unlisted gadget defeats them.

Affected VersionsENISA

picklescan 0 <0.0.28

Affected Packages

pypi picklescan fix: 0.0.28

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 statically inspects Python pickle streams to flag dangerous opcodes and imports that could trigger code execution during unpickling (CWE-502, Deserialization of Untrusted Data). Pickle's __reduce__ mechanism lets a serialized object specify a callable and arguments to run on load, which is the classic RCE primitive. The scanner maintains allow/deny lists of callables, and this flaw is a gap in that list: torch.utils.data.datapipes.utils.decoder.basichandlers - a PyTorch DataPipes decoder helper - was not recognized as an unsafe reduce target, so a crafted pickle routing execution through it evaded detection. The affected component is picklescan itself (cpe:2.3:a:picklescan:picklescan), the tool defenders rely on to gate untrusted PyTorch/ML model files.

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

Vendor (VulnCheck) PRIMARY 7.6 HIGH
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
vuln.today AI 6.8 MEDIUM

Network-delivered file but success needs the victim to scan-then-load a crafted model (UI:R) and depends on the specific unlisted gadget and PyTorch presence (AC:H); code execution yields C:H/I:H, no availability impact.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

1
Patch available
Jul 04, 2026 - 03:01 EUVD

DescriptionCVE.org

picklescan before 0.0.28 fails to detect malicious pickle files that use torch.utils.data.datapipes.utils.decoder.basichandlers in reduce methods, allowing attackers to bypass safety checks. Remote attackers can embed undetected malicious code in pickle files that executes during deserialization, enabling remote code execution.

Executive ViewAI

Why It Matters

picklescan, the primary safety screening tool for untrusted ML models on Hugging Face and similar platforms, contains a detection bypass allowing attackers to hide malicious code in files that report as clean. Organizations using picklescan to validate model safety face significant operational risk, as the tool provides false assurance-the scanner says files are safe when they execute malicious code upon deserialization. This affects all data science and ML infrastructure teams relying on picklescan for model validation.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Replace Python pickle deserialization with safer serialization formats (SafeTensors, ONNX) where compatible; (2) Confine model execution to isolated, sandboxed containers with network restrictions and minimal privileges; (3) Verify model provenance directly with publishers using cryptographic signatures rather than relying on automated scanning; (4) Implement network segmentation restricting model sources to authenticated, internal repositories; (5) Establish logging and monitoring for pickle deserialization events to detect anomalous model loading.

Threat Intelligence Overview

EPSS Score
0.4%
Top 64% exploitable
Prevalence
Medium
ML model-security scanner, adopted in Hugging Face-style model vetting pipelines
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.4%
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
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.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2026-3490 CRITICAL POC
10.0 Jun 17

Remote code execution against users of picklescan versions prior to 1.0.4 is achievable by smuggling any blocked functio

CVE-2025-10156 CRITICAL POC
9.3 Sep 17

An Improper Handling of Exceptional Conditions vulnerability in the ZIP archive scanning component of mmaitre314 pickles

CVE-2025-10157 CRITICAL POC
9.3 Sep 17

A Protection Mechanism Failure vulnerability in mmaitre314 picklescan versions up to and including 0.0.30 allows a remot

CVE-2025-10155 CRITICAL POC
9.3 Sep 17

An Improper Input Validation vulnerability in the scanning logic of mmaitre314 picklescan versions up to and including 0

CVE-2025-71341 HIGH POC
7.6 Jun 23

Detection bypass in picklescan prior to 0.0.29 allows attackers to smuggle remote code execution payloads through pickle

CVE-2025-71351 HIGH POC
7.6 Jun 21

Detection bypass in picklescan versions before 0.0.25 allows attackers to embed remote code execution payloads in pickle

CVE-2025-71370 HIGH POC
7.6 Jun 23

Detection bypass in picklescan before 0.0.28 allows attackers to embed malicious torch.jit.unsupported_tensor_ops.execWr

CVE-2025-71348 HIGH POC
7.6 Jun 21

Detection bypass in picklescan before 0.0.28 allows attackers to smuggle arbitrary code through pickle files by abusing

CVE-2025-71361 HIGH POC
7.6 Jun 24

Detection bypass in picklescan before 0.0.29 allows malicious pickle files to evade scanning by abusing the undetected i

CVE-2025-71378 HIGH POC
7.6 Jun 21

Detection bypass in picklescan versions before 0.0.30 allows malicious pickle files to evade security scanning by using

CVE-2025-71376 HIGH POC
7.6 Jun 23

Detection bypass in picklescan versions prior to 0.0.29 allows attackers to smuggle arbitrary code execution payloads th

CVE-2025-71365 HIGH POC
7.6 Jun 23

Detection bypass in picklescan before 0.0.33 allows attackers to smuggle arbitrary code through malicious pickle files b

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