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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-12-16 · Modified: 2025-04-17
- Aliases: GHSA-rp2v-v467-q9vq, PYSEC-2022-42994
- Record: https://cvemate.com/vulnerability/CVE-2022-23531 · JSON: https://cvemate.com/vulnerability/CVE-2022-23531/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.74%, percentile 55.964%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- datadog guarddog: \< 0.1.5
- datadoghq guarddog: \< 0.1.5
- PyPI guarddog (PyPI): \< a56aff58264cb6b7855d71b00dc10c39a5dbd306 \| \< 0.1.5

## References

- <https://github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq>
- <https://github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306>
- <https://github.com/DataDog/guarddog/releases/tag/v0.1.5>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-23531>
- <https://github.com/DataDog/guarddog/pull/89>
- <https://github.com/DataDog/guarddog/commit/98af5c8c1e9c15fa888c900252e76116b0ec25d1>
- <https://github.com/DataDog/guarddog>
- <https://github.com/pypa/advisory-database/tree/main/vulns/guarddog/PYSEC-2022-42994.yaml>

---

Data as of 2026-12-05T04:44:29.450Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
