CVE-2022-23530: GuardDog vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package
Vulnerability summary
CVE-2022-23530 is a medium (CVSS 6.5) vulnerability in datadog guarddog. EPSS estimates a 0.78% chance of exploitation in the next 30 days, higher than 57.2% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?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.78%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
Increase +0.03 pp
From 0.75% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundGuarddog
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
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