Skip to main content

Picklescan CVE-2025-71339

| EUVDEUVD-2025-210301 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-06-22 VulnCheck
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 malicious pickle with _eval_length gadget
  2. Delivery
    Publish as model on hub or send to victim
  3. Exploit
    Victim scans with Picklescan <0.0.33, gets safe verdict
  4. Execution
    Victim calls pickle.load/torch.load
  5. Persist
    NumPy F2PY helper evaluates attacker string
  6. Impact
    Arbitrary Python executes as loading user

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 (1) the victim use Picklescan < 0.0.33 to vet a pickle or PyTorch artifact supplied by the attacker, (2) the victim trust Picklescan's 'safe' verdict and subsequently call pickle.load / torch.load on the file, and (3) NumPy be importable in the loading environment so that numpy.f2py.crackfortran._eval_length resolves at unpickle time. Limiting factors per the CVSS 4.0 vector: user interaction is required (UI:P - the victim must load the file), an attack requirement applies (AT:P - the victim must rely on Picklescan's verdict), and PR:N means no prior authentication to the victim system is needed. Environments that do not use Picklescan, or that use safetensors / non-pickle formats, are not exposed via this specific gadget.

Impact

The CVSS 4.0 base score of 7.6 reflects network reach with low complexity but requires user interaction (UI:P) and an attack-requirement precondition (AT:P) - namely that a victim run Picklescan and then load the file it scanned as safe. There is no EPSS or CISA KEV signal provided, so this should be treated as publicly available exploit code exists rather than confirmed actively exploited. Real-world risk is concentrated in ML/AI pipelines that ingest third-party PyTorch or pickle artifacts and treat a Picklescan 'safe' verdict as authoritative; for environments that do not use Picklescan, the CVE is not directly applicable. The C/I impact is high (arbitrary code execution as the loading user) while A:N reflects that the gadget is oriented toward code execution rather than denial of service.

Exploit ScenarioDerived

An attacker publishes a malicious PyTorch checkpoint on a model hub whose __reduce__ returns numpy.f2py.crackfortran._eval_length with a payload such as "__import__('os').system('whoami')". A defender downloads the file, runs Picklescan < 0.0.33 which reports it as safe, then loads it with torch.load / pickle.load, at which point the F2PY helper evaluates the attacker's string and executes arbitrary commands as the loading user. A working PoC is published in the GHSA advisory.

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

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

Alert me

AnalysisAIv1 – Jun 22, 2026

Arbitrary code execution in Picklescan before 0.0.33 occurs because the scanner fails to flag the numpy.f2py.crackfortran._eval_length gadget when used inside a pickle __reduce__ method, allowing crafted pickle files to be marked safe while still executing attacker-supplied Python on load. Workflows that rely on Picklescan to vet untrusted pickle or PyTorch model artifacts are exposed to supply-chain poisoning, and publicly available exploit code exists in the GHSA advisory.

RemediationAI

Vendor-released patch: upgrade Picklescan to 0.0.33 or later (pip install --upgrade picklescan>=0.0.33), which adds detection for the numpy.f2py.crackfortran._eval_length gadget per PR https://github.com/mmaitre314/picklescan/pull/53 and commit 70c1c6c31beb6baaf52c8db1b6c3c0e84a6f9dab. Until the upgrade is rolled out, do not rely on Picklescan's verdict as the sole gate for loading untrusted pickle or PyTorch model files: prefer safetensors or other non-executable serialization formats, sandbox pickle.load() in a disposable process or container with no network and no credentials, and pin model sources to trusted publishers with signature verification (trade-off: safetensors does not support arbitrary Python objects, and sandboxing adds latency and orchestration cost). Additionally, denylist numpy.f2py.crackfortran._eval_length in any internal pickle allowlist scanners as a stopgap, recognizing that other equivalent gadgets likely remain undiscovered.

Affected VersionsENISA

picklescan 0 <0.0.33

Affected Packages

pypi picklescan fix: 0.0.33

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 library used to statically inspect pickle files for dangerous imports and callable references before pickle.load() is invoked, commonly applied to PyTorch model checkpoints distributed as untrusted artifacts. The root cause is CWE-502 (Deserialization of Untrusted Data) combined with an incomplete denylist: the scanner does not know that numpy.f2py.crackfortran._eval_length - a NumPy F2PY helper that internally evaluates a string expression - can be repurposed as a code-execution gadget when returned from __reduce__. Because pickle reconstruction invokes the returned callable with attacker-controlled arguments, the gadget effectively functions as an eval primitive, bypassing Picklescan's safety verdict. The affected CPE is cpe:2.3:a:picklescan:picklescan prior to 0.0.33.

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, victim must run Picklescan and load it (UI:R); no auth needed (PR:N); RCE yields C:H/I:H but no inherent availability impact.

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
Jun 22, 2026 - 23:02 EUVD

DescriptionCVE.org

Picklescan before 0.0.33 fails to detect the numpy.f2py.crackfortran._eval_length gadget in pickle __reduce__ methods, allowing arbitrary code execution. Attackers can craft malicious pickle files that execute arbitrary Python code when loaded by victims who trust Picklescan's safety validation.

Executive ViewAI

Why It Matters

Picklescan before version 0.0.33 fails to detect a critical code execution gadget chain, allowing malicious pickle files to bypass security validation and execute arbitrary Python code on load. Organizations using Picklescan to vet untrusted PyTorch models or pickle artifacts face supply-chain compromise risk, as publicly available exploit code exists and attackers can craft seemingly-safe files that execute malicious code during normal workflow operations.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Implement sandboxed execution for untrusted pickle loading (subprocess isolation, container segregation); require cryptographic signatures or hashes for externally-sourced PyTorch models; manually inspect or re-train suspicious model artifacts; restrict pickle deserialization to trusted code paths; consider alternative serialization formats (SafeTensors for PyTorch, MessagePack) where feasible.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Low
niche ML-security utility used mainly in PyTorch model-vetting workflows
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.3%
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

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