CVE-2025-71359Published Jul 4, 2026 · Jul 4Updated Oct 28
picklescan - Unsafe Deserialization via lib2to3.pgen2.grammar.Grammar.loads
picklescan
High7.6Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| picklescan PyPI |
|
|
Original description
picklescan before 0.0.29 fails to detect malicious pickle payloads that utilize lib2to3.pgen2.grammar.Grammar.loads in the reduce method, allowing remote code execution. Attackers can craft pickle files embedding dangerous code that evades picklescan detection and executes during pickle.load() deserialization.
From the CVE record · VulnCheck
References
- github.com/mmaitre314/picklescan/security/advisories/GHSA-f54q-57x4-jg88Exploit
- vulncheck.com/advisories/picklescan-unsafe-deserialization-via-lib2to3-pgen2-grammar-grammar-loads
- github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71359.json
- nvd.nist.gov/vuln/detail/CVE-2025-71359
- github.com/mmaitre314/picklescan/commit/aecd11be98702caa9ba9b12189d91ad596a36114
- github.com/mmaitre314/picklescan