CVE-2026-22871
Datadoghq Guarddog vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Guarddog. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Datadoghq Guarddog runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/DataDog/guarddog/commit/9aa6a725b2c71d537d3c18d1c15621395ebb879c · Patch
- github.com/DataDog/guarddog/security/advisories/GHSA-xg9w-vg3g-6m68 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2026-22871
- github.com/advisories/GHSA-xg9w-vg3g-6m68
- nvd.nist.gov/vuln/detail/CVE-2026-22871
- cve.org/CVERecord?id=CVE-2026-22871
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.