pypa/setuptools vulnerable to Regular Expression Denial of Service (ReDoS)
GHSA-r9hx-vwmv-q579 · BIT-setuptools-2022-40897 · CVE-2022-40897 · PYSEC-2022-43012
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
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.
References
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2022-40897
- WEB https://github.com/pypa/setuptools/issues/3659
- WEB https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be
- WEB https://setuptools.pypa.io/en/latest
- WEB https://security.netapp.com/advisory/ntap-20240621-0006
- WEB https://security.netapp.com/advisory/ntap-20230214-0001
- WEB https://pyup.io/vulnerabilities/CVE-2022-40897/52495
- WEB https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages
- WEB https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H
- WEB https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R
- WEB https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H
- WEB https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R
- WEB https://lists.debian.org/debian-lts-announce/2024/09/msg00018.html
- WEB https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1
- WEB https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200
- PACKAGE https://github.com/pypa/setuptools
- WEB https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2022-43012.yaml
Ready to move
Start Securing
Free, no credit card | First findings in minutes