CVE-2022-40897

pypa-setuptools: Regular Expression Denial of Service (ReDoS) in package_index.py

Published Dec 22, 2022 CVSS 3.1 · 5.9 Medium EPSS 2.6% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3876-1 setuptools security update
EUVD EUVD EUVD-2022-0278 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.
Github GHSA Github GHSA GHSA-r9hx-vwmv-q579 pypa/setuptools vulnerable to Regular Expression Denial of Service (ReDoS)
Ubuntu USN Ubuntu USN USN-5817-1 Setuptools vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00318}

epss

{'score': 0.00326}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Redhat rhel Aus
Redhat rhel E4s
Redhat rhel Tus
CPEs cpe:/a:redhat:rhel_aus:8.6
cpe:/a:redhat:rhel_e4s:8.6
cpe:/a:redhat:rhel_tus:8.6
Vendors & Products Redhat rhel Aus
Redhat rhel E4s
Redhat rhel Tus
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 4, 2025, 4:09 PM
Reserved
Sep 19, 2022, 12:00 AM
Status
Modified
Published
Dec 23, 2022, 12:15 AM
Modified
Jun 17, 2026, 5:02 AM
Severity
Moderate
Public date
Dec 22, 2022, 12:00 AM