Picklescan is vulnerable to RCE through missing detection when calling numpy.f2py.crackfortran._eval_length (CVE-2025-71339)
Picklescan versions prior to 0.0.33 fail to detect malicious pickle files that exploit the numpy.f2py.crackfortran._eval_length function during unpickling. This allows attackers to execute arbitrary Python code when a crafted pickle is loaded, despite Picklescan reporting the file as safe. The vulnerability enables arbitrary code execution in workflows relying on Picklescan to vet untrusted pickle or PyTorch artifacts, potentially facilitating supply-chain poisoning of shared model files.
AI Analysis
Technical Summary
Picklescan uses the numpy.f2py.crackfortran._eval_length function as part of its unpickling process. However, it does not detect malicious pickles that use this function in the __reduce__ method to execute arbitrary code. An attacker can craft a pickle that returns this function with attacker-controlled arguments, causing code execution when pickle.load() is called, even though Picklescan incorrectly marks the file as safe. This vulnerability affects Picklescan versions before 0.0.33 and impacts any environment relying on Picklescan for untrusted pickle file scanning.
Potential Impact
Successful exploitation results in arbitrary code execution on the victim machine when a malicious pickle file is loaded. This undermines the security of workflows that depend on Picklescan to validate pickle or PyTorch model files, potentially allowing attackers to perform supply-chain poisoning by distributing malicious model files that appear safe.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid trusting Picklescan's results for untrusted pickle files, and consider alternative methods to validate or sandbox unpickling operations to prevent arbitrary code execution.
Picklescan is vulnerable to RCE through missing detection when calling numpy.f2py.crackfortran._eval_length (CVE-2025-71339)
Description
Picklescan versions prior to 0.0.33 fail to detect malicious pickle files that exploit the numpy.f2py.crackfortran._eval_length function during unpickling. This allows attackers to execute arbitrary Python code when a crafted pickle is loaded, despite Picklescan reporting the file as safe. The vulnerability enables arbitrary code execution in workflows relying on Picklescan to vet untrusted pickle or PyTorch artifacts, potentially facilitating supply-chain poisoning of shared model files.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Picklescan uses the numpy.f2py.crackfortran._eval_length function as part of its unpickling process. However, it does not detect malicious pickles that use this function in the __reduce__ method to execute arbitrary code. An attacker can craft a pickle that returns this function with attacker-controlled arguments, causing code execution when pickle.load() is called, even though Picklescan incorrectly marks the file as safe. This vulnerability affects Picklescan versions before 0.0.33 and impacts any environment relying on Picklescan for untrusted pickle file scanning.
Potential Impact
Successful exploitation results in arbitrary code execution on the victim machine when a malicious pickle file is loaded. This undermines the security of workflows that depend on Picklescan to validate pickle or PyTorch model files, potentially allowing attackers to perform supply-chain poisoning by distributing malicious model files that appear safe.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid trusting Picklescan's results for untrusted pickle files, and consider alternative methods to validate or sandbox unpickling operations to prevent arbitrary code execution.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-6556-fwc2-fg2p
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-71339"]
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a5bd3182a4a8d5989284ff6
Added to database: 07/18/2026, 19:25:12 UTC
Last enriched: 07/18/2026, 19:26:51 UTC
Last updated: 07/18/2026, 20:59:29 UTC
Views: 4
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.