CVE-2022-23531
HIGH 7.8CVSS 3.1GuardDog vulnerable to arbitrary file write when scanning a specially-crafted PyPI package
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.
- Published
- 17 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22CWE-23
- Also known as
- GHSA-rp2v-v467-q9vqPYSEC-2022-42994
- Sources
- NVDJSONOSV GHSA-rp2v-v467-q9vqJSONOSV PYSEC-2022-42994JSON
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 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 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.5 | 0.1.5 |
| OSV | PyPI | guarddog | < 0.1.5 | 0.1.5 |
References
- https://github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306 · Patch, Third Party Advisory, FIX, WEB
- https://github.com/DataDog/guarddog/releases/tag/v0.1.5 · Release Notes, Third Party Advisory, WEB
- https://github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-23531 · ADVISORY
- https://github.com/DataDog/guarddog/pull/89 · WEB
- https://github.com/DataDog/guarddog/commit/98af5c8c1e9c15fa888c900252e76116b0ec25d1 · WEB
- https://github.com/DataDog/guarddog · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/guarddog/PYSEC-2022-42994.yaml · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 17 Dec 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Dec 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Dec 2022)