Live threats

All CVEs / Python

CVE-2022-40897Python Setuptools

Medium 5.9 No auth needed

Priority
51
CVSS 3.1
5.9
EPSS
2.3%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Dec 23, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

Python Packaging Authority (PyPA) setuptools before 65.5.1 allows remote attackers to cause a denial of service via HTML in a crafted package or custom PackageIndex page. There is a Regular Expression Denial of Service (ReDoS) in package_index.py.

Original NVD text.

What to do

  1. Apply the vendor's security update for Setuptools.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI setuptools < 65.5.1 65.5.1 pip install "setuptools>=65.5.1"
PyPI setuptools < 65.5.1 65.5.1 pip install "setuptools>=65.5.1"

Per OSV / GitHub Advisories (GHSA-r9hx-vwmv-q579, PYSEC-2022-43012). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pythonsetuptools< 65.5.1

Official sources

References

Links published by the sources. Open them with care.