PT-2022-16057 · Python+1 · Tarfile.Tarfile+1

Christophetd

·

Published

2022-12-02

·

Updated

2023-06-27

·

CVE-2022-23531

CVSS v3.1

5.8

Medium

VectorAV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L
Name of the Vulnerable Software and Affected Versions GuardDog versions prior to 0.1.5
Description The issue allows 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. This vulnerability exists by design in the tarfile.TarFile.extractall function. Running GuardDog against a specially-crafted package can exploit this vulnerability.
Recommendations Upgrade to GuardDog version 0.1.5 or more recent.

Exploit

Fix

Relative Path Traversal

Path traversal

Weakness Enumeration

Related Identifiers

CVE-2022-23531
GHSA-RP2V-V467-Q9VQ
PYSEC-2022-42994

Affected Products

Guarddog
Tarfile.Tarfile