CVE-2025-71363: picklescan: scanner bypass enables pickle RCE
HIGH CISA: ATTENDpicklescan is the de facto gatekeeper many ML teams and model hubs rely on to vet pickle-format model files before they're loaded, and this flaw shows it fails to flag a specific bypass technique: embedding a cProfile.run() call inside a pickle's __reduce__ method, which executes arbitrary code on deserialization but slips past picklescan's detection logic. The real danger here isn't the CVSS 8.1 score in isolation, it's that any pipeline treating a picklescan 'clean' verdict as a green light for pickle deserialization now has a documented blind spot, meaning a malicious model uploaded to a hub or internal registry could pass automated screening and still compromise whoever loads it. EPSS sits low (0.585%, ~56th percentile) and there's no public exploit, PoC, or Nuclei template yet, so this isn't an active-exploitation emergency, but pickle-based supply chain attacks against ML artifacts are a well-established technique class adversaries already use. Upgrade picklescan to 0.0.30 or later immediately in any CI/CD or model-ingestion pipeline that gates on it, and treat picklescan as a defense-in-depth layer rather than a sole control — prefer safetensors or other non-executable formats for model distribution wherever possible, and sandbox any pickle deserialization that can't be avoided.
What is the risk?
High-severity (CVSS 8.1) detection-bypass vulnerability in a security tool itself, which amplifies risk beyond a typical library bug because it undermines the assumed safety net of an automated scanning gate. Exploitability requires an attacker to craft a specific malicious pickle and get a victim to load it (user interaction required, no privileges needed), so it's not remotely triggerable without some form of social engineering or supply chain placement. No CISA KEV listing, no public exploit code, and a low-to-moderate EPSS score indicate exploitation is not currently widespread or trivial, but the technique is straightforward once documented (as this advisory now does) and pickle deserialization RCE is a mature, well-understood attack class in the ML ecosystem.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| picklescan | pip | — | No patch |
Do you use picklescan? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 step-
Upgrade picklescan to version 0.0.30 or later across all model-ingestion and CI/CD pipelines immediately. Do not treat a picklescan 'safe' verdict as sufficient on its own — layer additional controls such as loading models in a sandboxed/ephemeral environment, restricting network and filesystem access for the deserializing process, and migrating model storage to non-executable formats like safetensors wherever feasible. For detection, audit pickle files already accepted as 'clean' by pre-0.0.30 picklescan for cProfile.run() calls or other unusual reduce-method payloads, and monitor for anomalous process/network activity following model load events.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2025-71363?
picklescan is the de facto gatekeeper many ML teams and model hubs rely on to vet pickle-format model files before they're loaded, and this flaw shows it fails to flag a specific bypass technique: embedding a cProfile.run() call inside a pickle's __reduce__ method, which executes arbitrary code on deserialization but slips past picklescan's detection logic. The real danger here isn't the CVSS 8.1 score in isolation, it's that any pipeline treating a picklescan 'clean' verdict as a green light for pickle deserialization now has a documented blind spot, meaning a malicious model uploaded to a hub or internal registry could pass automated screening and still compromise whoever loads it. EPSS sits low (0.585%, ~56th percentile) and there's no public exploit, PoC, or Nuclei template yet, so this isn't an active-exploitation emergency, but pickle-based supply chain attacks against ML artifacts are a well-established technique class adversaries already use. Upgrade picklescan to 0.0.30 or later immediately in any CI/CD or model-ingestion pipeline that gates on it, and treat picklescan as a defense-in-depth layer rather than a sole control — prefer safetensors or other non-executable formats for model distribution wherever possible, and sandbox any pickle deserialization that can't be avoided.
Is CVE-2025-71363 actively exploited?
No confirmed active exploitation of CVE-2025-71363 has been reported, but organizations should still patch proactively.
How to fix CVE-2025-71363?
Upgrade picklescan to version 0.0.30 or later across all model-ingestion and CI/CD pipelines immediately. Do not treat a picklescan 'safe' verdict as sufficient on its own — layer additional controls such as loading models in a sandboxed/ephemeral environment, restricting network and filesystem access for the deserializing process, and migrating model storage to non-executable formats like safetensors wherever feasible. For detection, audit pickle files already accepted as 'clean' by pre-0.0.30 picklescan for cProfile.run() calls or other unusual reduce-method payloads, and monitor for anomalous process/network activity following model load events.
What systems are affected by CVE-2025-71363?
This vulnerability affects the following AI/ML architecture patterns: model serving, training pipelines, supply chain / model distribution, MLOps CI/CD.
What is the CVSS score for CVE-2025-71363?
CVE-2025-71363 has a CVSS v3.1 base score of 8.1 (HIGH). The EPSS exploitation probability is 0.58%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010.003 Model AML.T0011.000 Unsafe AI Artifacts AML.T0018.002 Embed Malware AML.T0107 Exploitation for Defense Evasion Compliance Controls Affected
What are the technical details?
Original Advisory
picklescan before 0.0.30 fails to detect cProfile.run function calls in pickle reduce methods, allowing attackers to execute arbitrary code. Remote attackers can craft malicious pickle files with cProfile.run payloads that bypass picklescan detection and achieve code execution upon deserialization.
Exploitation Scenario
An adversary crafts a malicious ML model file serialized with pickle, embedding a cProfile.run() call inside a custom __reduce__ method that executes an attacker-controlled command string when the object is unpickled. The attacker uploads this file to a public model repository, a compromised internal artifact store, or sends it directly to a target as a 'shared model checkpoint.' The victim organization's pipeline runs picklescan as an automated safety check before loading, and because picklescan (pre-0.0.30) doesn't recognize cProfile.run() as a dangerous call, the file is marked safe. A data scientist or automated training/inference job then loads the file via pickle.load() or torch.load(), triggering the embedded cProfile.run() payload and granting the attacker code execution on the host running the ML workload.
Weaknesses (CWE)
CWE-502 — Deserialization of Untrusted Data: The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.
- [Architecture and Design, Implementation] If available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.
- [Implementation] When deserializing data, populate a new object rather than just deserializing. The result is that the data flows through safe input validation and that the functions are safe.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N References
Timeline
Related Vulnerabilities
CVE-2026-3490 10.0 picklescan: blocklist bypass enables full RCE
Same package: picklescan GHSA-vvpj-8cmc-gx39 10.0 picklescan: security flaw enables exploitation
Same package: picklescan GHSA-g38g-8gr9-h9xp 9.8 picklescan: Allowlist Bypass evades input filtering
Same package: picklescan CVE-2025-1945 9.8 picklescan: ZIP flag bypass enables RCE in PyTorch models
Same package: picklescan GHSA-7wx9-6375-f5wh 9.8 picklescan: Allowlist Bypass evades input filtering
Same package: picklescan