Skip to main content

picklescan CVE-2025-71371

| EUVDEUVD-2025-210391 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-06-30 VulnCheck GHSA-h96j-r2w4-m289
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 malicious __reduce__
  2. Delivery
    Route payload via code.InteractiveInterpreter.runcode
  3. Exploit
    Distribute file to victim
  4. Execution
    Victim's picklescan <0.0.29 returns clean
  5. Persist
    Victim calls pickle.load()
  6. Impact
    Arbitrary code execution in victim process

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 use picklescan version earlier than 0.0.29 to vet a pickle file AND subsequently deserialize that file with pickle.load() (or equivalent unpickling). The specific enabling primitive is a __reduce__ method that calls code.InteractiveInterpreter.runcode, which older picklescan does not blocklist. Limiting factors per the CVSS 4.0 vector: an Attack Requirement is present (AT:P) and passive user interaction is needed (UI:P) - the victim must run the vulnerable scanner and load the malicious file - so there is no exploitation against an idle service. No authentication is required (PR:N). The bug is irrelevant to environments that do not use picklescan or that already block untrusted pickles by policy.

Impact

The provided CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N) describes a network-delivered, low-complexity issue with no privileges required, but with an Attack Requirement (AT:P) and passive User Interaction (UI:P) - meaning the victim must actually run a vulnerable picklescan version against the file and then load it. That gating is important: this is not a wormable, fully-unauthenticated server bug but a supply-chain/scanning-bypass that depends on a victim workflow. No EPSS score, no POC, and no KEV status were supplied, so there is no evidence of active or widespread exploitation; the real-world signal here is the high technical impact (RCE) tempered by the need for a specific defensive workflow to be in play. Treat as a meaningful priority for ML/data-engineering environments that ingest third-party pickle/model files and rely on picklescan as a gate, but lower priority for environments that do not use picklescan at all. EPSS is missing despite a credible vendor (VulnCheck) report - absence of that data, not a low score, is the gap.

Exploit ScenarioDerived

An attacker publishes a seemingly benign ML model or data file containing a pickle whose __reduce__ invokes code.InteractiveInterpreter.runcode with attacker-supplied Python. A victim using picklescan < 0.0.29 scans the file, sees a clean verdict, and proceeds to load it with pickle.load(), at which point the attacker's code executes in the victim's process. No public POC was identified at time of analysis, but the technique is straightforward given the described callable.

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

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

Alert me

AnalysisAIv1 – Jun 30, 2026

Malicious-pickle detection bypass in picklescan before 0.0.29 lets attackers smuggle weaponized pickle files past the scanner by abusing code.InteractiveInterpreter.runcode inside a __reduce__ method, leading to arbitrary code execution when the file is later deserialized with pickle.load(). picklescan is a security scanner specifically meant to flag dangerous pickles (e.g. in ML model files), so a gap in its blocklist directly defeats the control users rely on. Reported by VulnCheck with an assigned CVSS 4.0 score of 7.6; no public exploit and no CISA KEV listing identified at time of analysis.

RemediationAI

Vendor-released patch: 0.0.29 - upgrade picklescan to 0.0.29 or later (e.g. pip install --upgrade 'picklescan>=0.0.29') so the scanner recognizes the code.InteractiveInterpreter.runcode vector. Until upgraded, do not treat a clean picklescan result from an older version as authoritative; compensating controls include refusing to load pickles from untrusted sources, preferring safe serialization formats such as safetensors for ML model weights (trade-off: requires model re-export/conversion), and unpickling only inside a sandboxed/least-privilege process with no network or sensitive filesystem access (trade-off: added operational complexity). Review the GitHub advisory at https://github.com/mmaitre314/picklescan/security/advisories/GHSA-cj3c-v495-4xqh and the VulnCheck advisory at https://www.vulncheck.com/advisories/picklescan-remote-code-execution-via-code-interactiveinterpreter-detection-bypass for authoritative guidance.

Affected VersionsENISA

picklescan 0 <0.0.29

Affected Packages

pypi picklescan fix: 0.0.29

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

Python's pickle format is inherently unsafe: during unpickling, an object's __reduce__ method can return a callable and arguments that pickle will execute, which is the canonical CWE-502 (Deserialization of Untrusted Data) vector. picklescan defends against this by statically inspecting pickle opcodes/imports and blocklisting known dangerous callables before a file is trusted. The flaw is that its blocklist did not account for code.InteractiveInterpreter.runcode (from Python's standard code module), which can execute arbitrary Python passed to it. By routing payload execution through this unrecognized callable in a crafted __reduce__, an attacker produces a pickle that picklescan rates as clean but that runs code on load. The single affected component per CPE is cpe:2.3:a:picklescan:picklescan:*:*:*:*:*:*:*:*.

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 payload but exploitation needs the victim to scan with a vulnerable picklescan and then load the file, so AC:H and UI:R; successful unpickling yields full RCE, hence C:H/I:H/A:H with PR:N.

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.29 fails to detect malicious pickle files using code.InteractiveInterpreter.runcode in reduce methods. Attackers can craft pickle payloads that bypass picklescan detection and execute arbitrary code when loaded via pickle.load().

Executive ViewAI

Why It Matters

picklescan, widely deployed to validate Python pickle files in machine learning pipelines, contains a detection bypass vulnerability (CVSS 7.6) that allows attackers to disguise malicious code as legitimate pickle files, leading to arbitrary code execution when deserialized. Although no public exploit has been identified at this time, this vulnerability directly defeats the security control that organizations rely on to validate pickle integrity and prevent code injection in their ML model repositories and data infrastructure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: minimize pickle usage by transitioning to safer formats where feasible; implement cryptographic signing and verification for all pickle files prior to deserialization; isolate pickle deserialization in sandboxed environments or containerized workers; add supplementary validation layers including behavior-based analysis and anomaly detection; restrict network access from systems performing pickle deserialization; implement egress monitoring; apply network segmentation to limit lateral movement from compromised processes.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Low
niche Python security scanner for ML pickle files, limited footprint
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.5%
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
Partial

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