pypa/setuptools vulnerable to Regular Expression Denial of Service (ReDoS)
Date: 2022-12
Affected: pip/setuptools
Attack vector: dos
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2022-40897
CWE: CWE-1333
CVSS: 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)

Python Packaging Authority (PyPA)'s setuptools is a library designed to facilitate packaging Python projects. Setuptools version 65.5.0 and earlier could allow remote attackers to cause a denial of service by fetching malicious HTML from a PyPI package or custom PackageIndex page due to a vulnerable Regular Expression in `package_index`. This has been patched in version 65.5.1.


Mitigations:

Architectural layers (MAESTRO):