{"cve":"CVE-2022-23530","nvd":{"published":"2022-12-16T23:15:09.590","modified":"2026-06-17T04:30:18.270","status":"Modified","description":"GuardDog is a CLI tool to identify malicious PyPI packages. Versions prior to v0.1.8 are vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package. Extracting files using shutil.unpack_archive() from a potentially malicious tarball without validating that the destination file path is within the intended destination directory can cause files outside the destination directory to be overwritten.  This issue is patched in version 0.1.8. Potential workarounds include using a safer module, like zipfile, and validating the location of the extracted files and discarding those with malicious paths.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5},"cwes":["CWE-22"],"references":["https://github.com/DataDog/guarddog/blob/a1d064ceb09d39bb28deb6972bc0a278756ea91f/guarddog/scanners/package_scanner.py#L153..158","https://github.com/DataDog/guarddog/commit/37c7d0767ba28f4df46117d478f97652594c491c","https://github.com/DataDog/guarddog/security/advisories/GHSA-78m5-jpmf-ch7v","https://github.com/DataDog/guarddog/blob/a1d064ceb09d39bb28deb6972bc0a278756ea91f/guarddog/scanners/package_scanner.py#L153..158","https://github.com/DataDog/guarddog/commit/37c7d0767ba28f4df46117d478f97652594c491c"],"products":["datadoghq:guarddog"],"source":"nvd","synced_at":"2026-10-19T21:37:31.370122805+00:00"},"epss":{"cve":"CVE-2022-23530","score":0.00751,"percentile":0.55028,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-78m5-jpmf-ch7v","url":"https://osv.dev/vulnerability/GHSA-78m5-jpmf-ch7v","summary":"GuardDog vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package","modified":"2024-11-20T05:37:45.239747Z","packages":[{"ecosystem":"PyPI","name":"guarddog","purl":"pkg:pypi/guarddog","ranges":["<0.1.8"],"fixed":["0.1.8"]}]},{"id":"PYSEC-2022-42993","url":"https://osv.dev/vulnerability/PYSEC-2022-42993","summary":"","modified":"2023-11-08T04:08:21.047020Z","packages":[{"ecosystem":"PyPI","name":"guarddog","purl":"pkg:pypi/guarddog","ranges":["<0.1.8"],"fixed":["0.1.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}