CVE-2022-23530: datadog guarddog Path Traversal
Vulnerability summary
CVE-2022-23530 is a medium (CVSS 6.5) Path Traversal vulnerability in datadog guarddog. EPSS estimates a 0.75% chance of exploitation in the next 30 days, higher than 54.1% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 16-12-2022PublishedVulnerability first disclosed.
- 17-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA5.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:LDiffers
- OSV · PypiEcosystem advisory · calculated5.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:LDiffers
EPSS trend
Probability
0.75%
Chance of exploitation in the next 30 days
Percentile
54%
Versus all other CVEs
30-day change
+0.05 pp
From 0.70% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundGuarddog
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Datadog1 product
- guarddog< 0.1.8
Datadoghq1 product
- guarddog< 0.1.8
PyPI1 product
- guarddog< 37c7d0767ba28f4df46117d478f97652594c491c | < 0.1.8
3 vendors · 3 products
References
6 links- github.com/DataDog/guarddog/security/advisories/GHSA-78m5-jpmf-ch7vX Refsource CONFIRMWEBAdvisoryExploitThird Party Advisory
- github.com/DataDog/guarddog/commit/37c7d0767ba28f4df46117d478f97652594c491cX Refsource MISCWEBFIXPatchThird Party Advisory
- github.com/DataDog/guarddogPACKAGE