Vulnerability in Python Setuptools
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.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.026, 85.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 30 other repositories (Anna-Rafaella/Conteneurisation, ARPSyndicate/cvemon, Atamik03/API-calc-dz, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setupt… (Third Party Advisory)
- pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/ (Technical Description, Exploit, Patch, Vendor Advisory)
- github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be (Patch, Third Party Advisory)
- pyup.io/vulnerabilities/CVE-2022-40897/52495/ (Third Party Advisory)
- github.com/pypa/setuptools/compare/v65.5.0...v65.5.1 (Third Party Advisory, Release Notes)
- security.netapp.com/advisory/ntap-20230214-0001/
- FEDORA-2023-9992b32c1f (vendor-advisory)
- FEDORA-2023-60e2b22be0 (vendor-advisory)
- security.netapp.com/advisory/ntap-20240621-0006/
- lists.debian.org/debian-lts-announce/2024/09/msg00018.html