CVE-2022-23530
Last modified
CVE-2022-23530 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.70% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Datadoghq | Guarddog | < 0.1.8 |
References
- https://github.com/DataDog/guarddog/commit/37c7d0767ba28f4df46117d478f97652594c491cPatch, Third Party Advisory
- https://github.com/DataDog/guarddog/security/advisories/GHSA-78m5-jpmf-ch7vExploit, Third Party Advisory
- https://github.com/DataDog/guarddog/commit/37c7d0767ba28f4df46117d478f97652594c491cPatch, Third Party Advisory
- https://github.com/DataDog/guarddog/security/advisories/GHSA-78m5-jpmf-ch7vExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-23530?
How severe is CVE-2022-23530?
How do I fix CVE-2022-23530?
Are you affected by CVE-2022-23530?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
