CVE-2022-23530

GuardDog vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package

MEDIUM
6.5
CVSS Score
Published: December 16, 2022 at 10:56 PM UTC
Updated: June 17, 2026 at 04:30 AM UTC
2 products affected across 2 vendorsGuarddogGuarddog

Using guarddog by DataDog?

Get instant alerts when new vulnerabilities affect guarddog - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.5
Exploit prediction
EPSS 0.8%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.1.8
Affected range stops below 0.1.8, so it looks safe — our inference, not a vendor statement
v < 0.1.8
Affected range stops below 0.1.8, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card