Code Injection in setuptools - CVE-2024-6345

 

Code Injection in setuptools - CVE-2024-6345

Published: August 5, 2024


Vulnerability identifier: #VU95339
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2024-6345
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Python Packaging Authority
Affected software:
setuptools

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation when processing URL in the package_index module of pypa/setuptools. A remote attacker can send a specially crafted request and execute arbitrary code on the target system via download functions.


How to mitigate CVE-2024-6345

Install updates from vendor's website.

Sources