CVE-2022-23531 – guarddog
Package
Manager: pip
Name: guarddog
Vulnerable Version: >=0 <0.1.5
Severity
Level: Low
CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L
EPSS: 0.00093 pctl0.27116
Details
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 * https://semgrep.dev/r?q=trailofbits.python.tarfile-extractall-traversal.tarfile-extractall-traversal * https://www.trellix.com/en-us/about/newsroom/stories/research/tarfile-exploiting-the-world.html * https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall
Metadata
Created: 2022-12-02T22:25:25Z
Modified: 2024-11-18T16:26:28Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-rp2v-v467-q9vq/GHSA-rp2v-v467-q9vq.json
CWE IDs: ["CWE-22", "CWE-23"]
Alternative ID: GHSA-rp2v-v467-q9vq
Finding: F063
Auto approve: 1