8.8

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

Deferred
AliasesALPINE-CVE-2024-6345MGASA-2025-0056SUSE-SU-2024:2899-1
Published 15-07-2024Last modified 04-11-2025

Vulnerability summary

CVE-2024-6345 is a high (CVSS 8.8) Improper Control of Generation of Code vulnerability in pypa pypa/setuptools. EPSS estimates a 1.94% chance of exploitation in the next 30 days, higher than 80.1% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.0 (CVE.org)
EPSS score
1.94%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 8 · Related 27

Timeline

  1. 15-07-2024
    PublishedVulnerability first disclosed.
  2. 04-11-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

10 scores · 9 sources · 3 versions

EPSS trend

Probability

1.94%

Chance of exploitation in the next 30 days

Percentile

80%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.94% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Redhat93 products
  • Cython< 0:0.29.21-5.module+el8.4.0+9822+20bf1249
  • Cython-debugsource< 0:0.29.21-5.module+el8.4.0+9822+20bf1249
  • fence-agents< 0:4.10.0-43.el9_2.9 | < 0:4.10.0-20.el9_0.17 | < 0:4.10.0-62.el9_4.5 | < 0:4.2.1-112.el8_8.8 | < 0:4.2.1-65.el8_4.20 | < 0:4.2.1-89.el8_6.14
  • fence-agents-aliyun< 0:4.10.0-43.el9_2.9 | < 0:4.10.0-20.el9_0.17 | < 0:4.10.0-62.el9_4.5 | < 0:4.2.1-112.el8_8.8 | < 0:4.2.1-65.el8_4.20 | < 0:4.2.1-89.el8_6.14
  • fence-agents-aliyun-debuginfo< 0:4.2.1-112.el8_8.8 | < 0:4.2.1-65.el8_4.20 | < 0:4.2.1-89.el8_6.14
Chainguard46 products
  • airflow< 2.9.3-r1
  • airflow-bitnami-compat< 2.9.3-r1
  • az< 2.62.0-r1
  • az-iamguarded-compat< 2.62.0-r1
  • checkov< 3.0.34-r1
Wolfi37 products
  • airflow< 2.9.3-r1
  • airflow-bitnami-compat< 2.9.3-r1
  • az< 2.62.0-r1
  • az-iamguarded-compat< 2.62.0-r1
  • checkov< 3.0.34-r1
Opensuse16 products
  • python-setuptools-wheel&distro=openSUSE Leap 15.6< 67.7.2-150400.3.16.1
  • python-setuptools&distro=openSUSE Leap 15.5< 67.7.2-150400.3.16.1
  • python-setuptools&distro=openSUSE Leap 15.6< 67.7.2-150400.3.16.1
  • python-setuptools&distro=openSUSE Tumbleweed< 72.1.0-1.1
  • python3-setuptools-test&distro=openSUSE Leap 15.5< 44.1.1-150400.9.9.1
Ubuntu3 products
  • python-pip< 1.5.4-1ubuntu4+esm5 | < 8.1.1-2ubuntu0.6+esm8 | < 9.0.1-2.3~ubuntu1.18.04.8+esm4 | < 20.0.2-5ubuntu1.10+esm2
  • python-setuptools< 3.3-1ubuntu2+esm2 | < 20.7.0-1ubuntu0.1~esm2 | < 39.0.1-2ubuntu0.1+esm1 | < 44.0.0-2ubuntu0.1+esm1 | < 44.1.1-1.2ubuntu0.22.04.1+esm1
  • setuptools< 45.2.0-1ubuntu0.2 | < 59.6.0-1.2ubuntu0.22.04.2 | < 68.1.2-2ubuntu1.1
Alpine1 product
  • py3-setuptools< 70.3.0-r0
Debian1 product
  • setuptools< 66.1.1-1+deb12u1 | < 70.3.0-2
Mageia1 product
  • python-setuptools< 65.5.0-3.1.mga9
Pypa1 product
PyPI1 product
  • setuptools< 70.0.0

10 vendors · 200 products · Showing 200 of 363

References

87 links
Show all 87 references