Picklescan has a missing detection when calling built-in python idlelib.autocomplete.AutoComplete.get_entity (CVE-2025-71358)
Picklescan versions prior to 0.0.29 fail to detect malicious pickle files that exploit the built-in Python function idlelib.autocomplete.AutoComplete.get_entity. This allows attackers to craft pickle payloads that bypass Picklescan's detection and execute arbitrary code when loaded. The vulnerability affects users relying on Picklescan to verify the safety of pickle files, particularly in contexts such as PyTorch models. Exploitation can lead to remote code execution and supply chain attacks through infected pickle files distributed in machine learning models or saved Python objects.
AI Analysis
Technical Summary
Picklescan, a library used to detect malicious pickle files, has a detection gap when handling payloads that use the Python built-in function idlelib.autocomplete.AutoComplete.get_entity. An attacker can craft a pickle payload whose reduce method calls this function with a malicious command, which Picklescan does not flag as dangerous. Consequently, when a victim trusts Picklescan's assessment and loads the pickle file, the malicious code executes remotely. This vulnerability is tracked as CVE-2025-71358 and affects Picklescan versions before 0.0.29.
Potential Impact
Any organization or individual using Picklescan to validate pickle files, especially in machine learning workflows involving PyTorch models, is at risk. The vulnerability enables attackers to embed malicious code in pickle files that evade detection and execute upon loading, potentially leading to remote code execution. This can facilitate supply chain attacks by distributing infected pickle files through ML models, APIs, or saved Python objects, compromising system integrity and confidentiality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should verify if Picklescan has released an official fix for versions prior to 0.0.29. Until a patch is available, avoid loading pickle files solely based on Picklescan's detection results if they originate from untrusted sources. Consider additional manual review or alternative detection methods for pickle file safety.
Picklescan has a missing detection when calling built-in python idlelib.autocomplete.AutoComplete.get_entity (CVE-2025-71358)
Description
Picklescan versions prior to 0.0.29 fail to detect malicious pickle files that exploit the built-in Python function idlelib.autocomplete.AutoComplete.get_entity. This allows attackers to craft pickle payloads that bypass Picklescan's detection and execute arbitrary code when loaded. The vulnerability affects users relying on Picklescan to verify the safety of pickle files, particularly in contexts such as PyTorch models. Exploitation can lead to remote code execution and supply chain attacks through infected pickle files distributed in machine learning models or saved Python objects.
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
Picklescan, a library used to detect malicious pickle files, has a detection gap when handling payloads that use the Python built-in function idlelib.autocomplete.AutoComplete.get_entity. An attacker can craft a pickle payload whose reduce method calls this function with a malicious command, which Picklescan does not flag as dangerous. Consequently, when a victim trusts Picklescan's assessment and loads the pickle file, the malicious code executes remotely. This vulnerability is tracked as CVE-2025-71358 and affects Picklescan versions before 0.0.29.
Potential Impact
Any organization or individual using Picklescan to validate pickle files, especially in machine learning workflows involving PyTorch models, is at risk. The vulnerability enables attackers to embed malicious code in pickle files that evade detection and execute upon loading, potentially leading to remote code execution. This can facilitate supply chain attacks by distributing infected pickle files through ML models, APIs, or saved Python objects, compromising system integrity and confidentiality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should verify if Picklescan has released an official fix for versions prior to 0.0.29. Until a patch is available, avoid loading pickle files solely based on Picklescan's detection results if they originate from untrusted sources. Consider additional manual review or alternative detection methods for pickle file safety.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-6w4w-5w54-rjvr
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-71358"]
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a5bd3182a4a8d5989285002
Added to database: 07/18/2026, 19:25:12 UTC
Last enriched: 07/18/2026, 19:27:03 UTC
Last updated: 07/29/2026, 20:52:02 UTC
Views: 44
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.