{"id":"CVE-2022-23531","published":"2022-12-16T23:41:15Z","modified":"2025-04-17T14:33:54Z","title":"Arbitrary file write when scanning a specially-crafted local PyPI package","vendor":"DataDog","product":"guarddog","tier":"tail","description":{"text":"GuardDog is a CLI tool to identify malicious PyPI packages. Versions prior to 0.1.5 are vulnerable to Relative Path Traversal when scanning a specially-crafted local PyPI package. Running GuardDog against a specially-crafted package can allow an attacker to write an arbitrary file on the machine where GuardDog is executed 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. This issue is patched in version 0.1.5.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0074,"percentile":0.55513,"provenance":"source"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"}],"references":[{"url":"https://github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306","tags":["x_refsource_MISC"]},{"url":"https://github.com/DataDog/guarddog/releases/tag/v0.1.5","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":11.1},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"datadog","affectedVersions":[{"vendor":"DataDog","product":"guarddog","versions":["< 0.1.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-17T14:33:45.484638Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"guarddog","vulnerableRanges":["<0.1.5"],"patched":["0.1.5"],"from":["GHSA-rp2v-v467-q9vq","PYSEC-2022-42994"],"provenance":"source"}],"summary":{"text":"The flaw is a relative path traversal in DataDog's GuardDog, a CLI tool for identifying malicious PyPI packages, in its handling of local package archives when extracting the .tar.gz file of the package being scanned via tarfile.TarFile.extractall. An attacker who supplies a specially-crafted local PyPI package can write arbitrary files on the machine running GuardDog, provided a user is induced to scan that package, with the scanning process affected in versions prior to 0.1.5.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:51Z"},"euvd":{"id":"EUVD-2022-0118","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-datadog-guarddog-cve-2022-23530","children":[{"from":"CVE-2022-23531","to":"CVE-2022-23530","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:guarddog","fromFixed":"0.1.5","toFixed":"0.1.8","daysApart":0},{"kind":"same-code","provenance":"machine","files":["guarddog/scanners/package_scanner.py"],"commits":["https://github.com/DataDog/guarddog/commit/37c7d0767ba28f4df46117d478f97652594c491c","https://github.com/DataDog/guarddog/commit/a56aff58264cb6b7855d71b00dc10c39a5dbd306","https://github.com/DataDog/guarddog/commit/98af5c8c1e9c15fa888c900252e76116b0ec25d1"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2022-23531","published":"2022-12-16","fixed":"0.1.5","kev":false},{"cve":"CVE-2022-23530","published":"2022-12-16","fixed":"0.1.8","kev":false},{"cve":"CVE-2026-22870","published":"2026-01-13","fixed":"2.7.1","kev":false},{"cve":"CVE-2026-22871","published":"2026-01-13","fixed":"2.7.1","kev":false}],"package":"PyPI:guarddog"}}