Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. setuptools
  4. ›
  5. CVE-2024-6345

CVE-2024-6345: setuptools vulnerable to Command Injection via package URL

July 15, 2024

A vulnerability in the package_index module of pypa/setuptools versions up to 69.1.1 allows for remote code execution via its download functions. These functions, which are used to download packages from URLs provided by users or retrieved from package index servers, are susceptible to code injection. If these functions are exposed to user-controlled inputs, such as package URLs, they can execute arbitrary commands on the system. The issue is fixed in version 70.0.

References

  • github.com/advisories/GHSA-cx63-2mw6-8hw5
  • github.com/pypa/setuptools
  • github.com/pypa/setuptools/commit/88807c7062788254f654ea8c03427adc859321f0
  • github.com/pypa/setuptools/pull/4332
  • huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5
  • nvd.nist.gov/vuln/detail/CVE-2024-6345

Code Behaviors & Features

Detect and mitigate CVE-2024-6345 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 70.0.0

Fixed versions

  • 70.0.0

Solution

Upgrade to version 70.0.0 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/setuptools/CVE-2024-6345.yml

Spotted a mistake? Edit the file on GitLab.

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

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