guarddog
Affected
- introduced
0, fixed0.1.5(ecosystem)
Fixed versions
0.1.5
Fix
- Fixed version
0.1.5pip install --upgrade guarddog==0.1.5
Advisory
Also known as: CVE-2022-23531, PYSEC-2022-42994
GuardDog vulnerable to arbitrary file write when scanning a specially-crafted PyPI package
Impact
Running GuardDog against a specially-crafted package can allow an attacker to write an arbitrary file on the machine where GuardDog is executed.
This is due to a path traversal vulnerability when extracting the .tar.gz file of the package being scanned, which exists by design in the tarfile.TarFile.extractall function. See also https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall
Remediation
Upgrade to GuardDog v0.1.5 or more recent.
References
Low Basis: The source's own band: LOW
0, fixed 0.1.5 (ecosystem)0.1.5
0.1.5pip install --upgrade guarddog==0.1.5Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0