Description
GuardDog is a CLI tool to identify malicious PyPI packages. Prior to 2.7.1, GuardDog's safe_extract() function does not validate decompressed file sizes when extracting ZIP archives (wheels, eggs), allowing attackers to cause denial of service through zip bombs. A malicious package can consume gigabytes of disk space from a few megabytes of compressed data. This vulnerability is fixed in 2.7.1.
Problem types
CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)
Product status
References
github.com/...arddog/security/advisories/GHSA-ffj4-jq7m-9g6v
github.com/...ommit/c3fb07b4838945f42497e78b7a02bcfb1e63969b