Advisory

PYSEC-2022-42994

Also known as: CVE-2022-23531, GHSA-rp2v-v467-q9vq

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2022-12-17 00:15 UTC
Modified
2026-02-22 22:48 UTC

Affected packages and fixes

guarddog

PyPI · All systems

Affected

  • introduced 0, fixed 0.1.5 (ecosystem)

Fixed versions

0.1.5

Fix

  • Fixed version 0.1.5
    pip install --upgrade guarddog==0.1.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences