GuardDog Path Traversal Vulnerability Leads to Arbitrary File Overwrite and RCE
DataDog guarddog
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| guarddog PyPI |
|
|
Original description
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.
From the CVE record · GitHub_M
References
- github.com/DataDog/guarddog/security/advisories/GHSA-xg9w-vg3g-6m68Advisory
- github.com/DataDog/guarddog/commit/9aa6a725b2c71d537d3c18d1c15621395ebb879cPatch
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22871.json
- nvd.nist.gov/vuln/detail/CVE-2026-22871
- github.com/DataDog/guarddog
- pypi.org/project/guarddog
- github.com/advisories/GHSA-xg9w-vg3g-6m68