CVE-2025-71322 PickleScan - Unsafe Globals Check Bypass via pty.spawn Function
Attackers can bypass PickleScan's security checks using pty.spawn to achieve arbitrary code execution when processing malicious pickle files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-71322?
CVE-2025-71322 is a high-severity vulnerability in PickleScan, published on 17 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
PickleScan before 0.0.33 fails to include the pty.spawn function in its unsafe globals list, allowing attackers to bypass security checks. Malicious actors can craft pickle payloads using pty.spawn to achieve arbitrary code execution when files are processed by PickleScan.
Weakness: CWE-693
Which versions are affected by CVE-2025-71322?
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-71322?
Upgrade picklescan to 0.0.33 or later.
Is CVE-2025-71322 being exploited?
There is no known exploitation of CVE-2025-71322 in the wild and no public exploit code.
Sources
Also known as GHSA-hgrh-qx5j-jfwx, PYSEC-2026-1790.