CVE-2022-23530

Public Exploit
GuardDog vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package

Description

GuardDog is a CLI tool to identify malicious PyPI packages. Versions prior to v0.1.8 are vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package. Extracting files using shutil.unpack_archive() from a potentially malicious tarball without validating that the destination file path is within the intended destination directory can cause files outside the destination directory to be overwritten. This issue is patched in version 0.1.8. Potential workarounds include using a safer module, like zipfile, and validating the location of the extracted files and discarding those with malicious paths.

Category

5.8
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.12%
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-23530?
CVE-2022-23530 has been scored as a medium severity vulnerability.
How to fix CVE-2022-23530?
To fix CVE-2022-23530, 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-23530 being actively exploited in the wild?
It is possible that CVE-2022-23530 is being exploited or will be exploited in a near future based on public information. 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-23530?
CVE-2022-23530 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.