CVE-2024-6345: Remote Code Execution in pypa/setuptools

Published Jul 15, 2024
·
Updated

A vulnerability in the packageindex 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.

Other sources

A vulnerability in the packageindex 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.

NVD

Affected Software

3 affected componentsFixes available
pip/setuptools<70.0.0
70.0.0
debian/setuptools<=52.0.0-4, <=66.1.1-1
52.0.0-4+deb11u174.1.2-2
IBM Edge Application Manager<=4.5

Event History

Jul 15, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 AM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·01:20 AM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·03:30 AM
Sep 20, 2024
Data Sourced
via Ubuntu·12:28 PM
RemedyDescriptionSeverityAffected Software
Aug 20, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-6345?

CVE-2024-6345 has been rated with a high severity due to its potential for remote code execution.

2

How do I fix CVE-2024-6345?

To mitigate CVE-2024-6345, upgrade the setuptools package to version 70.0.0 or later.

3

Which versions of setuptools are affected by CVE-2024-6345?

CVE-2024-6345 affects setuptools versions up to and including 69.1.1.

4

Is there a specific version of setuptools I should use to avoid CVE-2024-6345?

It is recommended to use setuptools version 70.0.0 or higher to avoid CVE-2024-6345.

5

What is the impact of CVE-2024-6345 on my system?

The impact of CVE-2024-6345 is that it allows an attacker to execute arbitrary code remotely through vulnerable download functions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203