CVE-2022-23531 json
Arbitrary file write when scanning a specially-crafted local PyPI package
published 2022-12-02 3 y ago modified 2026-06-17 4 mo ago also GHSA-rp2v-v467-q9vq , PYSEC-2022-42994 , EUVD-2022-0118
- cvss
- 5.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi guarddog 0.1.5
- datadoghq guarddog 0.1.5
- github.com/DataDog/guarddog#89 commit
- github.com/DataDog/guarddog@98af5c8 commit
- github.com/DataDog/guarddog#89 pull request
- github.com/DataDog/guarddog/releases/tag/v0.1.5 release
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.73% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 5.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | guarddog | <0.1.5 |
0.1.5 |
Affected products
- DataDog guarddog
Classification
References
-
github.com
/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306
patch, third-party-advisory, web
-
github.com
/DataDog/guarddog/pull/89
web
-
github.com
/DataDog/guarddog/commit/98af5c8c1e9c15fa888c900252e76116b0ec25d1
web
-
github.com
/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq
web, third-party-advisory, advisory
-
github.com
/DataDog/guarddog/releases/tag/v0.1.5
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-23531
advisory
-
github.com
/DataDog/guarddog
package
-
github.com
/pypa/advisory-database/tree/main/vulns/guarddog/PYSEC-2022-42994.yaml
web
Sources
- CVE List CVE-2022-23531
- GitHub Advisory GHSA-rp2v-v467-q9vq
- NVD CVE-2022-23531
- OSV PYSEC-2022-42994
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.