# CVE-2022-23531: Arbitrary file write when scanning a specially-crafted local PyPI package

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Published: 2022-12-02T22:25:25.000Z
- Modified: 2026-06-17T04:30:18.400Z
- Also known as: GHSA-rp2v-v467-q9vq, PYSEC-2022-42994
- Weaknesses: CWE-22, CWE-23
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- DataDog guarddog: < 0.1.5
- guarddog (PyPI): before 0.1.5; before a56aff58264cb6b7855d71b00dc10c39a5dbd306
- datadoghq guarddog: before 0.1.5

## Every score

- GitHub_M: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.8 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Low `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: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq> (advisory, third-party-advisory, web)
- <https://github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306> (fix, patch, third-party-advisory, web)
- <https://github.com/DataDog/guarddog/releases/tag/v0.1.5> (release-notes, third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2022-23531](https://www.cve.org/CVERecord?id=CVE-2022-23531), CVE Terms of Use, modified 2025-04-17
- GitHub Advisory Database: [GHSA-rp2v-v467-q9vq](https://github.com/advisories/GHSA-rp2v-v467-q9vq), CC-BY-4.0, modified 2026-02-22
- NVD: [CVE-2022-23531](https://nvd.nist.gov/vuln/detail/CVE-2022-23531), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-42994](https://osv.dev/vulnerability/PYSEC-2022-42994), CC-BY-4.0, modified 2026-02-22

---

Page: https://cve.day/CVE-2022-23531 · Whole record: https://cve.day/CVE-2022-23531.json · Rebuilt by cve.day 2026-11-25T22:58:17.653Z
