Description
picklescan before 0.0.30 fails to detect malicious pickle files that exploit lib2to3.pgen2.pgen.ParserGenerator.make_label function in the reduce method. Attackers can craft malicious pickle files with embedded code that evades detection but executes arbitrary commands when pickle.load() is called.
Problem types
Deserialization of Untrusted Data
Product status
Any version before 0.0.30
0.0.30 (semver)
Credits
FredericDT
References
github.com/...lescan/security/advisories/GHSA-p9w7-82w4-7q8m
github.com/...lescan/security/advisories/GHSA-p9w7-82w4-7q8m (GitHub Security Advisory (GHSA-p9w7-82w4-7q8m))
www.vulncheck.com/...ergenerator-make-label-detection-bypass (VulnCheck Advisory: picklescan - Arbitrary Code Execution via lib2to3.pgen2.pgen.ParserGenerator.make_label Detection Bypass)