Skip to main content

picklescan EUVDEUVD-2025-210390

| CVE-2025-71368 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-06-30 VulnCheck GHSA-354x-p5rw-9f85
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 embedding doctest.debug_script payload
  2. Delivery
    Distribute as 'safe' ML model
  3. Exploit
    Victim scans with picklescan, passes
  4. Execution
    Victim calls pickle.load
  5. Impact
    Arbitrary 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.

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

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

Alert me

AnalysisAIv1 – 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

picklescan 0 <0.0.30

Affected Packages

pypi picklescan fix: 0.0.30

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

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 7.5 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/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 01, 2026 - 02:16 EUVD

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.8%
Top 49% exploitable
Prevalence
Medium
pickle-security scanner used in AI/ML model-ingestion pipelines, not ubiquitous
Data Quality
6 sources
Confidence: High

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.8%
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

39
Low Medium High Critical
KEV: 0
EPSS: +1
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