Skip to main content

picklescan CVE-2025-71352

| EUVDEUVD-2025-210387 HIGH
Protection Mechanism Failure (CWE-693)
2026-06-30 VulnCheck GHSA-rf4j-9c72-qfw6
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.runctx reduce payload
  2. Delivery
    Publish/deliver as trusted model file
  3. Exploit
    Victim scans with picklescan <0.0.29, reported clean
  4. Execution
    Victim calls pickle.load()
  5. Impact
    Arbitrary code executes in ML environment

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Protection mechanism completeness
Exploitation Conditions

Exploitation requires that the victim use picklescan (any version before 0.0.29) to scan an attacker-supplied pickle/model file AND subsequently deserialize that file with pickle.load() or equivalent - the payload must be a pickle reduce method that calls the built-in Python trace.Trace.runctx, which the scanner fails to flag. The limiting factors are the victim's reliance on picklescan as a trust gate and the requirement that the malicious file actually be loaded (passive user interaction, UI:P/AT:P); no authentication is needed by the attacker (PR:N) since they only need to deliver the crafted file. If picklescan is not part of the workflow, or if files are never deserialized after scanning, the condition is not met.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N) reflects a network-delivered, unauthenticated code-execution payload that nonetheless depends on two real-world gates: a passive Attack Requirement (AT:P) and Passive user interaction (UI:P) - namely that a victim actually scans the file with picklescan and then loads it. Impact is high for confidentiality and integrity but no availability impact is claimed. There is no EPSS score, no KEV listing, and no POC referenced in the provided data, so the practical signal is 'detection-bypass weakness with high theoretical impact but no evidence of active or widespread exploitation.' The notable nuance is that this CVE is not itself a primary RCE - it is a control-evasion bug; its severity is conditional on organizations trusting picklescan as a gate in their ML supply chain. For environments that do rely on picklescan, this should be patched promptly; for those that do not use picklescan, the CVE is not applicable.

Exploit ScenarioDerived

An attacker publishes a malicious ML model to a public hub whose reduce method invokes trace.Trace.runctx; an organization's intake pipeline scans it with a pre-0.0.29 picklescan, which reports it clean, and a data scientist then loads the model with pickle.load(), executing the attacker's code in the ML environment. No public exploit is identified at time of analysis, but the technique is straightforward given the low attack complexity (AC:L) once a victim is induced to scan-then-load the file (UI:P/AT:P).

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

Detection bypass in picklescan before 0.0.29 allows attackers to smuggle arbitrary-code payloads past the scanner by abusing Python's built-in trace.Trace.runctx in a pickle reduce method, so a malicious model/pickle file is rated safe yet executes code when later deserialized with pickle.load(). picklescan is a security scanner used to vet untrusted ML pickle files (notably in the Hugging Face ecosystem), so this failure defeats the very control teams rely on to catch malicious models. No public exploit identified at time of analysis and the issue is not in CISA KEV; reported by VulnCheck with a CVSS 4.0 base score of 7.6.

RemediationAI

Vendor-released patch: 0.0.29 - upgrade picklescan to 0.0.29 or later (for example, pip install --upgrade 'picklescan>=0.0.29') as the primary fix, per GHSA-g344-hcph-8vgg. Until upgraded, treat picklescan results on untrusted files as unreliable: avoid calling pickle.load() on any externally sourced model/pickle and prefer safe serialization formats such as safetensors, or load models only inside a sandboxed/network-restricted environment so that a bypassed payload cannot reach sensitive data - the trade-off being added pipeline friction and conversion effort. As a compensating control, supplement picklescan with a second independent scanner or an allowlist of permitted opcodes/callables rather than relying on any single blocklist-based tool, accepting that this increases scanning time and may produce false positives. Reference the maintainer advisory (https://github.com/mmaitre314/picklescan/security/advisories/GHSA-g344-hcph-8vgg) and VulnCheck advisory (https://www.vulncheck.com/advisories/picklescan-remote-code-execution-via-undetected-trace-trace-runctx-in-pickle-files).

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 permits objects to define a __reduce__ method that returns a callable plus arguments to be invoked during deserialization, which is the long-standing mechanism behind pickle RCE. picklescan works by inspecting the opcode/import stream of a pickle and blocklisting known dangerous callables, but it maintained an incomplete inventory: it did not flag trace.Trace.runctx, a standard-library function that executes a code statement within a given global/local namespace. By routing the malicious callable through trace.Trace.runctx, an attacker satisfies the reduce contract while evading the scanner's dangerous-import checks. The root cause maps to CWE-693 (Protection Mechanism Failure) - the security control exists but can be circumvented because its detection list is not exhaustive. The single affected component is the picklescan package itself (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 6.8 MEDIUM

Remote unauthenticated delivery (AV:N/PR:N), but AC:H/UI:R because success depends on the victim scanning with picklescan and then loading the file; code execution yields C:H/I:H, no availability impact.

3.1 AV:N/AC:H/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 Python trace.Trace.runctx function when used in pickle file reduce methods, allowing attackers to execute arbitrary code. Remote attackers can craft malicious pickle files with trace.Trace.runctx payloads that bypass picklescan detection and execute code upon pickle.load() invocation.

Executive ViewAI

Why It Matters

picklescan before version 0.0.29 contains a detection bypass vulnerability that allows malicious machine learning models to be falsely marked as safe, then execute arbitrary code when loaded. Organizations relying on picklescan to vet untrusted models from sources like Hugging Face now have a critical gap in their supply chain security controls for ML workflows.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Enforce manual code review and static analysis for all pickle files from external sources; (2) Restrict model loading to verified, internally-controlled repositories only; (3) Isolate model deserialization to sandboxed/air-gapped environments; (4) Evaluate and pilot alternative security scanners with active maintenance.

Threat Intelligence Overview

EPSS Score
0.6%
Top 54% exploitable
Prevalence
Low
niche Python ML security scanner, limited but supply-chain-relevant deployment
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
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

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