GHSA-mq7r-vm99-p7vx
picklescan versions through 0.0.26 fail to detect malicious pickle files that invoke idlelib.pyshell.ModifiedInterpreter.runcode in __reduce__ methods. This allows attackers to embed undetected code in pickle files that execute arbitrary commands when loaded via pickle.load(), enabling supply chain attacks on PyTorch models and saved Python objects. The issue is fixed in version 0.0.30.
AI Analysis
Technical Summary
The vulnerability in picklescan up to version 0.0.26 involves failure to detect malicious pickle files that use the __reduce__ method to invoke idlelib.pyshell.ModifiedInterpreter.runcode. This flaw allows attackers to embed code that executes arbitrary commands upon deserialization with pickle.load(). Such undetected malicious pickle files can be used in supply chain attacks targeting PyTorch models and other saved Python objects. The vulnerability is identified as CWE-502 (Deserialization of Untrusted Data) and is fixed in picklescan version 0.0.30.
Potential Impact
Attackers can craft malicious pickle files that bypass detection by picklescan versions up to 0.0.26, leading to arbitrary code execution when these files are deserialized. This enables supply chain attacks on PyTorch models and other Python objects, potentially compromising systems that load these pickle files.
Mitigation Recommendations
Upgrade picklescan to version 0.0.30 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
GHSA-mq7r-vm99-p7vx
Description
picklescan versions through 0.0.26 fail to detect malicious pickle files that invoke idlelib.pyshell.ModifiedInterpreter.runcode in __reduce__ methods. This allows attackers to embed undetected code in pickle files that execute arbitrary commands when loaded via pickle.load(), enabling supply chain attacks on PyTorch models and saved Python objects. The issue is fixed in version 0.0.30.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in picklescan up to version 0.0.26 involves failure to detect malicious pickle files that use the __reduce__ method to invoke idlelib.pyshell.ModifiedInterpreter.runcode. This flaw allows attackers to embed code that executes arbitrary commands upon deserialization with pickle.load(). Such undetected malicious pickle files can be used in supply chain attacks targeting PyTorch models and other saved Python objects. The vulnerability is identified as CWE-502 (Deserialization of Untrusted Data) and is fixed in picklescan version 0.0.30.
Potential Impact
Attackers can craft malicious pickle files that bypass detection by picklescan versions up to 0.0.26, leading to arbitrary code execution when these files are deserialized. This enables supply chain attacks on PyTorch models and other Python objects, potentially compromising systems that load these pickle files.
Mitigation Recommendations
Upgrade picklescan to version 0.0.30 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-mq7r-vm99-p7vx
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-71340"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a3ef7d227e9c79719005a7f
Added to database: 06/26/2026, 22:06:10 UTC
Last enriched: 06/26/2026, 22:38:59 UTC
Last updated: 06/27/2026, 00:31:10 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.