CVE-2024-6345
Python vulnerability analysis and mitigation

Overview

CVE-2024-6345 is a vulnerability discovered in the package_index module of pypa/setuptools affecting versions up to 69.1.1. The vulnerability allows for remote code execution via its download functions, which are used to download packages from URLs provided by users or retrieved from package index servers. The issue was fixed in version 70.0 (NVD).

Technical details

The vulnerability is classified as a code injection flaw (CWE-94) where the download functions in the package_index module are susceptible to code injection when exposed to user-controlled inputs, such as package URLs. The vulnerability has received a CVSS v3.0 base score of 8.8 (HIGH) with the vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, indicating high severity with potential for remote exploitation (NVD, Huntr).

Impact

If successfully exploited, the vulnerability can allow attackers to execute arbitrary commands on the system through maliciously crafted package URLs. This poses a significant risk as it could lead to complete system compromise with the same privileges as the application running setuptools (NVD).

Mitigation and workarounds

The recommended mitigation is to upgrade to setuptools version 70.0 or later, which contains the fix for this vulnerability. The fix includes modernization and refactoring of VCS handling in the package_index module (Github).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management