# CVE-2026-22871: GuardDog Path Traversal Vulnerability Leads to Arbitrary File Overwrite and RCE

- Priority: **Routine**
- Reason: Not severe (CVSS 8.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-01-13 · Modified: 2026-01-13
- Aliases: GHSA-xg9w-vg3g-6m68, PYSEC-2026-1430
- Record: https://cvemate.com/vulnerability/CVE-2026-22871 · JSON: https://cvemate.com/vulnerability/CVE-2026-22871/json

## 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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.064%, percentile 65.79%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- datadog guarddog: \< 2.7.1
- datadoghq guarddog: \< 2.7.1
- PyPI guarddog (PyPI): \< 2.7.1

## References

- <https://github.com/DataDog/guarddog/security/advisories/GHSA-xg9w-vg3g-6m68>
- <https://github.com/DataDog/guarddog/commit/9aa6a725b2c71d537d3c18d1c15621395ebb879c>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22871>
- <https://github.com/DataDog/guarddog>
- <https://pypi.org/project/guarddog>
- <https://github.com/advisories/GHSA-xg9w-vg3g-6m68>

---

Data as of 2026-12-05T04:50:55.356Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
