Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Python | Setuptools | < 65.5.1 |
Related Weaknesses (CWE)
References
- https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5dThird Party Advisory
- https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964PatchThird Party Advisory
- https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1Release NotesThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packageExploitPatchTechnical Description
- https://pyup.io/vulnerabilities/CVE-2022-40897/52495/Third Party Advisory
- https://security.netapp.com/advisory/ntap-20230214-0001/
- https://security.netapp.com/advisory/ntap-20240621-0006/
- https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5dThird Party Advisory
- https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964PatchThird Party Advisory
- https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1Release NotesThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2024/09/msg00018.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
FAQ
What is CVE-2022-40897?
CVE-2022-40897 is a vulnerability with a CVSS score of 5.9 (MEDIUM). 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...
How severe is CVE-2022-40897?
CVE-2022-40897 has been rated MEDIUM with a CVSS base score of 5.9/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-40897?
Check the references section above for vendor advisories and patch information. Affected products include: Python Setuptools.