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.
Problem types
Deserialization of Untrusted Data
Product status
Any version
0.0.30 (semver)
Credits
FredericDT
References
github.com/...lescan/security/advisories/GHSA-3gf5-cxq9-w223 (GitHub Security Advisory (GHSA-3gf5-cxq9-w223))
www.vulncheck.com/...lib-pyshell-modifiedinterpreter-runcode (VulnCheck Advisory: picklescan - Remote Code Execution via idlelib.pyshell.ModifiedInterpreter.runcode)