Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. guarddog
  4. ›
  5. CVE-2026-22871

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

January 13, 2026

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.

CWE: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

References

  • github.com/DataDog/guarddog
  • github.com/DataDog/guarddog/commit/9aa6a725b2c71d537d3c18d1c15621395ebb879c
  • github.com/DataDog/guarddog/security/advisories/GHSA-xg9w-vg3g-6m68
  • github.com/advisories/GHSA-xg9w-vg3g-6m68
  • nvd.nist.gov/vuln/detail/CVE-2026-22871

Code Behaviors & Features

Detect and mitigate CVE-2026-22871 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.7.1

Fixed versions

  • 2.7.1

Solution

Upgrade to version 2.7.1 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/guarddog/CVE-2026-22871.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:04 +0000.