Red Hat VEX
RHVEX-CVE-2024-6345
pypa/setuptools: Remote code execution via download functions in the package_index module in pypa/setuptools
Details
A flaw was found in the package_index module of pypa/setuptools. Affected versions of this package allow 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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:6 | python-setuptools | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | python2-setuptools | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | python2-setuptools-wheel | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | bootc-image-builder | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | rhel-bootc | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2024-6345
- https://bugzilla.redhat.com/show_bug.cgi?id=2297771
- https://www.cve.org/CVERecord?id=CVE-2024-6345
- https://nvd.nist.gov/vuln/detail/CVE-2024-6345
- https://github.com/pypa/setuptools/commit/88807c7062788254f654ea8c03427adc859321f0
- https://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5