CVE-2022-23530
MEDIUM 6.5CVSS 3.1GuardDog vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package
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.
- Published
- 16 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-78m5-jpmf-ch7vPYSEC-2022-42993
- Sources
- NVDJSONOSV GHSA-78m5-jpmf-ch7vJSONOSV PYSEC-2022-42993JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | datadoghq | guarddogcpe:2.3:a:datadoghq:guarddog:*:*:*:*:*:python:*:* |
< 0.1.8 | 0.1.8 |
| OSV | PyPI | guarddog | < 0.1.8 | 0.1.8 |
References
- https://github.com/DataDog/guarddog/blob/a1d064ceb09d39bb28deb6972bc0a278756ea91f/guarddog/scanners/package_scanner.py#L153..158 · Exploit, Third Party Advisory, WEB
- https://github.com/DataDog/guarddog/commit/37c7d0767ba28f4df46117d478f97652594c491c · Patch, Third Party Advisory, WEB, FIX
- https://github.com/DataDog/guarddog/security/advisories/GHSA-78m5-jpmf-ch7v · Exploit, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-23530 · ADVISORY
- https://github.com/DataDog/guarddog · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/guarddog/PYSEC-2022-42993.yaml · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 16 Dec 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 16 Dec 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Dec 2022)