Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft pickle embedding doctest.debug_script payload
-
DeliveryDistribute as 'safe' ML model
-
ExploitVictim scans with picklescan, passes
-
ExecutionVictim calls pickle.load
-
ImpactArbitrary code executes in loader 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 that the target uses picklescan (version < 0.0.30) as its safety gate AND that a victim subsequently deserializes the attacker-supplied pickle with pickle.load - the passive user interaction (UI:P) reflected in the CVSS vector. The exact technical prerequisite is a pickle file crafted to invoke doctest.debug_script, which the pre-0.0.30 denylist fails to flag. Limiting factors: the attacker must get their file in front of the victim (no direct remote trigger), the victim must actually load it, and the attack matters only where picklescan is the trusted screening control; environments that already avoid pickle (e.g., safetensors) or do not use picklescan are not exposed. No authentication is required of the attacker (PR:N). |
| Impact | The supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N) scores 7.6 and tells a nuanced story: exploitation is network-deliverable and needs no privileges, but it carries an attack requirement (AT:P) and passive user interaction (UI:P) - the victim must obtain and load a malicious pickle that picklescan has cleared. This is a scanner-evasion/supply-chain risk rather than a directly remotely-triggerable server flaw. No EPSS score was provided, and the CVE is not in CISA KEV, so there is no evidence of active exploitation; no public PoC was indicated either. The real-world priority is meaningful for organizations that rely on picklescan as a security gate (e.g., ML model ingestion pipelines), because the vulnerability defeats the very control teams trust - but for environments not using picklescan it is largely irrelevant. Note a tension worth verifying: confidentiality and integrity are rated High while availability is N, even though arbitrary code execution would typically also threaten availability. |
| Exploit ScenarioDerived | An attacker uploads a malicious ML model serialized as a pickle to a model hub or sends it to a victim who screens incoming models with picklescan; the embedded doctest.debug_script call passes the scan as 'safe.' When the victim's pipeline calls pickle.load on the model to use it, the payload executes attacker-chosen commands in the context of the loading process. No public PoC was identified, but the bypass technique is straightforward given the CWE-502 root cause. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 30, 2026
Detection bypass leading to arbitrary code execution in picklescan before 0.0.30 allows attackers to smuggle malicious payloads past the scanner by abusing the doctest.debug_script function, which picklescan's analyzer does not recognize as dangerous. Because picklescan is used to vet untrusted pickle/ML model files before loading, a crafted pickle marked 'safe' will execute attacker commands the moment pickle.load is invoked. There is no public exploit identified at time of analysis, and this is not listed in CISA KEV, but the technique is well-understood and was disclosed by VulnCheck.
RemediationAI
Vendor-released patch: upgrade picklescan to 0.0.30 or later, which adds detection for the doctest.debug_script vector - see the GitHub Security Advisory GHSA-fqq6-7vqf-w3fg (https://github.com/mmaitre314/picklescan/security/advisories/GHSA-fqq6-7vqf-w3fg) and the VulnCheck advisory (https://www.vulncheck.com/advisories/picklescan-arbitrary-code-execution-via-undetected-doctest-debug-script). Because picklescan is a denylist-based scanner that can never be exhaustive, do not treat a clean scan as proof of safety: prefer loading models in the safetensors format instead of pickle where possible (eliminates the deserialization risk entirely, though it requires converting/re-saving models), and restrict pickle.load to trusted, signed sources. If you must load untrusted pickles, deserialize inside a sandboxed, network-isolated, least-privilege container so that any code execution is contained (trade-off: added pipeline complexity and runtime overhead). Pin the picklescan dependency version in CI so the patched release is enforced across all build agents.
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
The flaw lies in picklescan, a Python tool that statically inspects pickle opcodes to flag dangerous global references (e.g., os.system, builtins.exec) before a model file is deserialized. Pickle is an inherently unsafe serialization format because the REDUCE/GLOBAL opcodes can invoke arbitrary callables during unpickling - the classic CWE-502 (Deserialization of Untrusted Data) class. picklescan maintains a denylist of unsafe imports, but its list omitted doctest.debug_script, a standard-library function that can be coerced into executing arbitrary code. An attacker references this overlooked global, so the scanner returns a clean verdict while the underlying pickle remains weaponized. The affected CPE is cpe:2.3:a:picklescan:picklescan:*:*:*:*:*:*:*:* for all versions prior to 0.0.30.
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
Remote delivery but no direct trigger (AV:N), victim must load a crafted pickle (UI:R) and attacker must craft a bypass (AC:H); no auth needed (PR:N); code execution yields full C/I/A impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
picklescan before 0.0.30 fails to detect the doctest.debug_script function when analyzing pickle files, allowing attackers to execute arbitrary code. Remote attackers can craft malicious pickle files embedding doctest.debug_script calls that bypass picklescan detection and execute arbitrary commands upon pickle.load invocation.
Executive ViewAI
picklescan, a security tool used to validate untrusted Python pickle and ML model files before loading, contains a detection bypass vulnerability (CVE-2025-71368) that enables arbitrary code execution on systems that rely on it for threat screening. Organizations using picklescan to vet externally-sourced models or serialized data face a critical control failure: attackers can distribute malicious payloads that pass inspection and execute commands the moment the file is loaded.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Execute all untrusted pickle/model file loading in isolated sandbox environments with minimal OS-level permissions; (2) Implement file-source verification and security code review for externally-sourced pickle files before processing; (3) Temporarily disable or isolate picklescan-dependent workflows until patch is released; (4) Evaluate alternative serialization formats (JSON, SafeTensors for ML models) as temporary replacements where architecturally feasible.
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.
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
EUVD-2025-210390
GHSA-354x-p5rw-9f85
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB