Vulnerability · Published Jun 25, 2026 · Assigned by VulnCheck
CVE-2025-71340picklescan - Remote Code Execution via idlelib.pyshell.ModifiedInterpreter.runcode
High 8.1
In plain English
A high-severity unsafe deserialization in picklescan from picklescan. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
picklescan through 0.0.26 fails to detect malicious pickle files that invoke idlelib.pyshell.ModifiedInterpreter.runcode in __reduce__ methods. Attackers can embed undetected code in pickle files that executes arbitrary commands when the file is loaded via pickle.load(), enabling supply chain attacks on PyTorch models and saved Python objects. This is fixed in version 0.0.30.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | picklescan | 0.0.30 | GHSA-3gf5-cxq9-w223 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| picklescan | picklescan | 0 – through 0.0.26 |
Weakness: CWE-502 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
References
- GitHub Security Advisory (GHSA-3gf5-cxq9-w223) vendor-advisory
- VulnCheck Advisory: picklescan - Remote Code Execution via idlelib.pyshell.ModifiedInterpreter.runcode third-party-advisory