Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. guarddog
  4. ›
  5. CVE-2022-23530

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

December 5, 2022 (updated November 18, 2024)

Unsafe extracting using shutil.unpack_archive() from a remotely retrieved tarball may lead to writing the extracted file to an unintended destination.

References

  • github.com/DataDog/guarddog
  • github.com/DataDog/guarddog/blob/a1d064ceb09d39bb28deb6972bc0a278756ea91f/guarddog/scanners/package_scanner.py
  • github.com/DataDog/guarddog/commit/37c7d0767ba28f4df46117d478f97652594c491c
  • github.com/DataDog/guarddog/security/advisories/GHSA-78m5-jpmf-ch7v
  • github.com/advisories/GHSA-78m5-jpmf-ch7v
  • github.com/pypa/advisory-database/tree/main/vulns/guarddog/PYSEC-2022-42993.yaml
  • nvd.nist.gov/vuln/detail/CVE-2022-23530

Code Behaviors & Features

Detect and mitigate CVE-2022-23530 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.1.8

Fixed versions

  • 0.1.8

Solution

Upgrade to version 0.1.8 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/guarddog/CVE-2022-23530.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:31 +0000.