Skip to main content
← All vulnerabilities
CVE-2022-23531PYSEC-2022-42994GHSA-RP2V-V467-Q9VQ

Arbitrary file write when scanning a specially-crafted local PyPI package

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.1.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

GuardDog is a CLI tool to identify malicious PyPI packages. Versions prior to 0.1.5 are vulnerable to Relative Path Traversal when scanning a specially-crafted local PyPI package. Running GuardDog against a specially-crafted package can allow an attacker to write an arbitrary file on the machine where GuardDog is executed due to a path traversal vulnerability when extracting the .tar.gz file of the package being scanned, which exists by design in the tarfile.TarFile.extractall function. This issue is patched in version 0.1.5.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • DataDog guarddog

    fixed in 0.1.5

  • guarddogPyPI

    fixed in 0.1.5

References 3

GitHub · DataDog/guarddog