CVE-2026-53875 picklescan - Scanning Bypass via Dynamic Eval in scan_pytorch
Attackers can bypass picklescan detection using dynamic eval tricks to execute arbitrary code via malicious PyTorch payloads.
- 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-2026-53875?
CVE-2026-53875 is a high-severity code injection 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 1.0.3 contains a scanning bypass vulnerability in the scan_pytorch function that allows attackers to embed malicious magic numbers via dynamic eval using the __reduce__ trick. Attackers can craft malicious PyTorch payloads that evade picklescan detection while remaining executable, enabling arbitrary code execution when loaded with torch.load().
Weakness: CWE-95
Which versions are affected by CVE-2026-53875?
3 open source packages ship an affected version, including picklescan.
| Package | Affected | Fixed in |
|---|---|---|
picklescan PyPI | All versions | 1.0.3 |
picklescan PyPI | All versions | 1.0.3 |
picklescan PyPI | All versions | 1.0.3 |
How do I fix CVE-2026-53875?
Upgrade picklescan to 1.0.3 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-53875 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-53875 exists.
Sources
Also known as GHSA-97f8-7cmv-76j2, PYSEC-2026-2873.