CVE-2022-23531

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

Description

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.

Categories

5.8
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.09%
Third-Party Advisory github.com Third-Party Advisory github.com Third-Party Advisory github.com
Affected: DataDog guarddog
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-23531?
CVE-2022-23531 has been scored as a medium severity vulnerability.
How to fix CVE-2022-23531?
To fix CVE-2022-23531, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-23531 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2022-23531 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-23531?
CVE-2022-23531 affects DataDog guarddog.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.