6.5

CVE-2022-23530: GuardDog vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package

Modified
AliasesGHSA-78m5-jpmf-ch7vPYSEC-2022-42993
Published 16-12-2022Last modified 17-04-2025

Vulnerability summary

CVE-2022-23530 is a medium (CVSS 6.5) vulnerability in datadog guarddog. EPSS estimates a 0.78% chance of exploitation in the next 30 days, higher than 57.2% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 5.8, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.78%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 16-12-2022
    PublishedVulnerability first disclosed.
  2. 17-04-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.78%

Chance of exploitation in the next 30 days

Percentile

57%

Versus all other CVEs

30-day change

Increase +0.03 pp

From 0.75% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Guarddog

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Datadog1 product
Datadoghq1 product
PyPI1 product
  • guarddog< 37c7d0767ba28f4df46117d478f97652594c491c | < 0.1.8

3 vendors · 3 products

References

6 links