Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious pickle with _eval_length gadget
-
DeliveryPublish as model on hub or send to victim
-
ExploitVictim scans with Picklescan <0.0.33, gets safe verdict
-
ExecutionVictim calls pickle.load/torch.load
-
PersistNumPy F2PY helper evaluates attacker string
-
ImpactArbitrary 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.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.
Articles & Coverage 1
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
More in Picklescan
View allRemote code execution against users of picklescan versions prior to 1.0.4 is achievable by smuggling any blocked functio
An Improper Handling of Exceptional Conditions vulnerability in the ZIP archive scanning component of mmaitre314 pickles
A Protection Mechanism Failure vulnerability in mmaitre314 picklescan versions up to and including 0.0.30 allows a remot
An Improper Input Validation vulnerability in the scanning logic of mmaitre314 picklescan versions up to and including 0
Detection bypass in picklescan prior to 0.0.29 allows attackers to smuggle remote code execution payloads through pickle
Detection bypass in picklescan versions before 0.0.25 allows attackers to embed remote code execution payloads in pickle
Detection bypass in picklescan before 0.0.28 allows attackers to embed malicious torch.jit.unsupported_tensor_ops.execWr
Detection bypass in picklescan before 0.0.28 allows attackers to smuggle arbitrary code through pickle files by abusing
Detection bypass in picklescan before 0.0.29 allows malicious pickle files to evade scanning by abusing the undetected i
Detection bypass in picklescan versions before 0.0.30 allows malicious pickle files to evade security scanning by using
Detection bypass in picklescan versions prior to 0.0.29 allows attackers to smuggle arbitrary code execution payloads th
Detection bypass in picklescan before 0.0.33 allows attackers to smuggle arbitrary code through malicious pickle files b
EUVD-2025-210301
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB