Advisory

PYSEC-2026-1918

Also known as: BIT-setuptools-2024-6345, CVE-2024-6345, GHSA-cx63-2mw6-8hw5

Summary

setuptools vulnerable to Command Injection via package URL

Details

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.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-07-07 14:34 UTC
Modified
2026-07-07 17:57 UTC

Affected packages and fixes

setuptools

PyPI · All systems

Affected

  • introduced 0, fixed 70.0.0 (ecosystem)

Fixed versions

70.0.0

Fix

  • Fixed version 70.0.0
    pip install --upgrade setuptools==70.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences