FlawAtlas
Search the atlas
CVE-2022-40897 High

CVE-2022-40897

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.

Exploit probability 2.6%
Published December 23, 2022
Required by Not available
Last source change June 10, 2026

02 / AFFECTED SOFTWARE

Affected packages

PyPI setuptools

514 explicit affected versions

Unknown Unknown

68 explicit affected versions

PyPI setuptools

582 explicit affected versions

Bitnami setuptools

03 / CONNECTIONS

Connected vulnerabilities

04 / EVIDENCE

Source records

Open Source Vulnerabilities CVE-2022-40897

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.

View original source
Open Source Vulnerabilities PYSEC-2022-43012

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.

View original source
Open Source Vulnerabilities BIT-setuptools-2022-40897

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.

View original source
Open Source Vulnerabilities GHSA-r9hx-vwmv-q579

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.

View original source

05 / REFERENCES

Further evidence