CVE-2025-71320 picklescan - Remote Code Execution via Incomplete Disallowed Inputs
Remote attackers can achieve arbitrary code execution by crafting malicious pickle files that bypass picklescan's incomplete deny-list.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-71320?
CVE-2025-71320 is a critical unsafe deserialization vulnerability in picklescan, published on 17 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
picklescan before 0.0.33 contains an incomplete deny-list that fails to block pydoc.locate and operator.methodcaller functions, allowing attackers to bypass security checks. Remote attackers can craft malicious pickle files using these unblocked functions to achieve arbitrary code execution when the pickle is deserialized.
Weakness: CWE-184
Which versions are affected by CVE-2025-71320?
3 open source packages ship an affected version, including picklescan.
| Package | Affected | Fixed in |
|---|---|---|
picklescan PyPI | All versions | 0.0.33 |
picklescan PyPI | All versions | 0.0.33 |
picklescan PyPI | All versions | 0.0.33 |
How do I fix CVE-2025-71320?
Upgrade picklescan to 0.0.33 or later.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2025-71320 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-71320 exists.
Sources
Also known as GHSA-84r2-jw7c-4r5q, PYSEC-2026-1785.