GuardDog Path Traversal Vulnerability Leads to Arbitrary File Overwrite and RCE
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| DataDog | guarddog | before 2.7.1 | 2.7.1 | Patch available | CNA |
| — | guarddog (PyPI) | before 2.7.1 | 2.7.1 | Patch available | GHSA-xg9w-vg3g-6m68 |
- guarddog VendorDataDog Affected before 2.7.1 Fixed in 2.7.1 Patch available CNA
- guarddog (PyPI) Vendor— Affected before 2.7.1 Fixed in 2.7.1 Patch available GHSA-xg9w-vg3g-6m68
Remediation
- Fix · CNA guarddog (DataDog) Fixed in 2.7.1
- Fix · GHSA-xg9w-vg3g-6m68 guarddog (PyPI) Fixed in 2.7.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-22871
- 2026-10-03 Alias added: GHSA-xg9w-vg3g-6m68
References
More DataDog vulnerabilities
- TI-2026-32833 GuardDog: Blind GitHub URL rewrite in remote project scanning causes SSRF and `GH_TOKEN` exfiltration CVSS 3.1HIGH 8.2
- TI-2022-07587 GuardDog vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package CVSS 3.1MEDIUM 6.5
- TI-2026-26107 dd-trace-java: Unsafe deserialization in RMI instrumentation may lead to remote code execution CVSS 4.0CRITICAL 9.3
- TI-2026-81528 ReDoS in dd-trace URL query string obfuscation CVSS 4.0HIGH 8.7
- TI-2026-80927 ReDoS in Datadog dd-trace-py URL query string obfuscation CVSS 4.0HIGH 8.7
- TI-2023-20052 import-in-the-middle allows unsanitized user controlled input in module generation CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-22871 · CVE Program
- CVE-2026-22871 · NVD
- FIRST EPSS
- GHSA-xg9w-vg3g-6m68 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences