Read the docs
TI-2026-18363 Aliases CVE-2026-22871GHSA-xg9w-vg3g-6m68

GuardDog Path Traversal Vulnerability Leads to Arbitrary File Overwrite and RCE

Priority MEDIUM 42CWE-22Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01064 64th percentileScored 2026-11-07
Fix Fixed guarddog (DataDog): 2.7.1guarddog (PyPI): 2.7.1

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

VendorProductAffected versionsFixed inStatusSource
DataDogguarddogbefore 2.7.12.7.1Patch availableCNA
—guarddog (PyPI)before 2.7.12.7.1Patch availableGHSA-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

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:datadoghq:guarddog:*:*:*:*:*:python:*:*before 2.7.1VulnerableDatadoghq
  • cpe:2.3:a:datadoghq:guarddog:*:*:*:*:*:python:*:* Versions before 2.7.1 Vulnerable ·Datadoghq

Remediation

  • Fix · CNA guarddog (DataDog) Fixed in 2.7.1
  • Fix · GHSA-xg9w-vg3g-6m68 guarddog (PyPI) Fixed in 2.7.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-22871
  2. 2026-10-03 Alias added: GHSA-xg9w-vg3g-6m68

References

  • 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
See all 28 →

Sources