Skip to main content

picklescan EUVDEUVD-2025-210385

| CVE-2025-71349 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-06-30 VulnCheck GHSA-3cjr-683m-5fxh
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 trace.Trace.run reduce
  2. Delivery
    Publish as trusted model file
  3. Exploit
    Victim scans with vulnerable picklescan
  4. Execution
    Scanner reports file safe
  5. Persist
    Victim calls pickle.load
  6. Impact
    Arbitrary code executes 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 a vulnerable picklescan version (before 0.0.29) as a trust gate AND subsequently deserialize the file with pickle.load (or an equivalent pickle-based loader) - the scanner bypass alone is inert without a downstream unpickle. The specific trigger is a pickle file whose __reduce__ method references the standard-library trace.Trace.run callable, which picklescan fails to flag. Limiting factors: the CVSS vector specifies UI:P (passive user interaction) and AT:P (an attack requirement), meaning a victim must actually load/process the crafted file and the attacker must get that file into the victim's scanning-then-loading workflow (e.g., via a malicious shared model); it is not a remotely reachable service exploit. Environments that avoid pickle.load on untrusted data, or that do not rely on picklescan as the sole control, are not realistically exploitable.

Impact

The CVSS 4.0 base score is 7.6 (High) with vector AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N, indicating network-delivered, low-complexity, unauthenticated abuse but gated by both an attack requirement (AT:P) and passive user interaction (UI:P) - the victim must actually load/process the malicious file under a false sense of safety, and confidentiality/integrity impact is High while availability is unaffected. No EPSS score, KEV listing, or POC was provided in the input, so there is no evidence of active exploitation or published exploit code at this time. The realistic risk is moderate and contextual: this is not a directly server-side RCE but a scanner-evasion flaw, so impact depends on whether picklescan is a trusted gate in a pipeline that subsequently unpickles the file. Where picklescan is the sole control before loading untrusted models, the effective risk rises to full code execution; where additional sandboxing exists, it is mitigated. The signals are internally consistent (UI required, no confirmed exploitation), so prioritize patching but treat widespread automated exploitation as currently unproven.

Exploit ScenarioDerived

An attacker publishes a malicious ML model to a public hub with a pickle whose __reduce__ invokes trace.Trace.run to run attacker-chosen code. A victim's pipeline scans it with a pre-0.0.29 picklescan, receives a 'safe' verdict, and then calls pickle.load (or a framework loader), executing the attacker's code with the victim process's privileges. No public exploit was provided in the input, but the technique is straightforward given the documented reduce-method abuse.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% 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 arbitrary code execution payloads past the scanner by abusing the built-in trace.Trace.run function inside a pickle's __reduce__ method. Because picklescan does not flag trace.Trace.run as a dangerous global, a crafted model/pickle file is reported as safe yet executes arbitrary code when later deserialized via pickle.load. No public exploit identified at time of analysis; this is a classic deny-list gap in a security scanner that defenders rely on to gate untrusted ML artifacts.

RemediationAI

Vendor-released patch: upgrade picklescan to version 0.0.29 or later, which adds trace.Trace.run to the dangerous-globals detection set (see GHSA-5qwp-399c-mjwf and the VulnCheck advisory linked above). As a compensating control where immediate upgrade is not possible, do not treat a clean picklescan result from an old version as authoritative: avoid pickle.load on any untrusted or third-party model file, and prefer safer serialization formats such as safetensors for ML weights, which trade some flexibility for eliminating arbitrary-code execution. Additionally, unpickle untrusted artifacts only inside a sandboxed, network-restricted, least-privilege environment so that a bypass does not translate into host compromise; the trade-off is added pipeline complexity and the loss of pickle's convenience for arbitrary Python objects.

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

picklescan is a Python security tool that statically inspects pickle (and pickle-based ML model) files for references to dangerous callables before they are unpickled, and is used in ML supply-chain workflows to screen untrusted models. Python's pickle format is inherently code-executing: the __reduce__ protocol lets an object specify a callable and arguments invoked at load time, which is the basis of CWE-502 (Deserialization of Untrusted Data). picklescan defends against this by matching imported globals against a blocklist of known-dangerous functions (os.system, eval, etc.). The root cause here is an incomplete blocklist: the standard-library trace.Trace.run callable, which executes a passed code/command string, was not enumerated as dangerous, so an attacker placing trace.Trace.run in the reduce tuple slips through undetected while still yielding execution on pickle.load. The CPE cpe:2.3:a:picklescan:picklescan:*:*:* confirms the affected component is picklescan itself across all versions prior to the fix.

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

Network-delivered malicious file with no privileges but requiring the victim to load it (UI:R); arbitrary code execution gives C:H/I:H, with no direct availability impact and unchanged scope.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/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 the built-in trace.Trace.run function when analyzing pickle files, allowing attackers to embed undetected malicious code. Remote attackers can craft malicious pickle files using trace.Trace.run in the reduce method to achieve arbitrary code execution when pickle.load processes the file.

Executive ViewAI

Why It Matters

picklescan, a widely-deployed security scanner for validating untrusted machine learning artifacts, contains a bypass flaw that allows attackers to smuggle arbitrary code execution through pickle files that the scanner incorrectly reports as safe. Organizations relying on picklescan as a control to gate model deployment face direct risk of remote code execution if an attacker supplies a crafted model.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Load pickle files only in isolated sandbox environments with no network access; (2) Supplement picklescan validation with additional static analysis or binary inspection of model files; (3) Enforce model source allowlisting and disable deserialization of untrusted or unfamiliar model architectures; (4) Monitor model execution for unexpected system calls or process spawning; (5) Consider disabling pickle-based model loading in favor of safer serialization formats (ONNX, SavedModel) where feasible.

Threat Intelligence Overview

EPSS Score
0.6%
Top 57% exploitable
Prevalence
Low
niche ML-security pickle-scanning library, limited production 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.6%
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

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