{"id":"CVE-2026-22871","published":"2026-01-13T20:46:57Z","modified":"2026-01-13T21:24:07Z","title":"GuardDog Path Traversal Vulnerability Leads to Arbitrary File Overwrite and RCE","vendor":"DataDog","product":"guarddog","tier":"tail","description":{"text":"GuardDog is a CLI tool to identify malicious PyPI packages. Prior to 2.7.1, there is a path traversal vulnerability exists in GuardDog's safe_extract() function that allows malicious PyPI packages to write arbitrary files outside the intended extraction directory, leading to Arbitrary File Overwrite and Remote Code Execution on systems running GuardDog. This vulnerability is fixed in 2.7.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01064,"percentile":0.65497,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/DataDog/guarddog/security/advisories/GHSA-xg9w-vg3g-6m68","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/DataDog/guarddog/commit/9aa6a725b2c71d537d3c18d1c15621395ebb879c","tags":["x_refsource_MISC"]}],"priority":{"score":19.2,"factors":[{"name":"EPSS percentile","points":13.1},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"datadog","affectedVersions":[{"vendor":"DataDog","product":"guarddog","versions":["< 2.7.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-13T21:23:35.718154Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"guarddog","vulnerableRanges":["<2.7.1"],"patched":["2.7.1"],"from":["GHSA-xg9w-vg3g-6m68","PYSEC-2026-1430"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the safe_extract() function of GuardDog, a CLI tool for identifying malicious PyPI packages, lets crafted archive entries escape the intended extraction directory. An attacker can exploit it by getting a victim to scan a malicious PyPI package, with no authentication or network access required beyond delivering that package, though the scan must be run on the affected GuardDog version (before 2.7.1) for the file overwrite and code execution to occur.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:49Z"},"euvd":{"id":"EUVD-2026-2012","exploited":false,"provenance":"source"}}