UnratedPyPIPublished
PYSEC-2019-109
CVE-2019-12760 · GHSA-22mf-97vh-x8rw
- Affected
- PyPI parso < 0.5.0
- Fixed in
- 0.5.0· Vendor fix available
- Issue
- DISPUTED A deserialization vulnerability exists in the way parso through 0.4.0 handles grammar parsing from the cache. Cache loading relies on pickle and, provided that an evil pickle can be written to a cache grammar file and that its parsing can be triggered, this flaw leads to Arbitrary Code Execution. NOTE: This is disputed because "the cache directory is not under control of the attacker in any common configuration."
Recommended action: Upgrade to 0.5.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.