CVE-2022-23531: datadog guarddog Relative Path Traversal
Vulnerability summary
CVE-2022-23531 is a high (CVSS 7.8) Relative Path Traversal vulnerability in datadog guarddog. EPSS estimates a 0.73% chance of exploitation in the next 30 days, higher than 53.5% of scored vulnerabilities.
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 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.
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.73%
Chance of exploitation in the next 30 days
Percentile
54%
Versus all other CVEs
30-day change
+0.06 pp
From 0.67% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-23Relative Path TraversalThe product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Affected systems
Datadog1 product
- guarddog< 0.1.5
Datadoghq1 product
- guarddog< 0.1.5
PyPI1 product
- guarddog< a56aff58264cb6b7855d71b00dc10c39a5dbd306 | < 0.1.5
3 vendors · 3 products
References
8 links- github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vqX Refsource CONFIRMWEBAdvisoryThird Party Advisory
- github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306X Refsource MISCFIXWEBPatchThird Party Advisory
- github.com/DataDog/guarddogPACKAGE