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 (84.8th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 85th percentile — 84.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.026 · newest: 0.026 · change: 0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
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/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- security.netapp.com/advisory/ntap-20240621-0006/
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2022-40897?
- CVE-2022-40897 is a medium-severity vulnerability in Python Setuptools, classified under Inefficient Regular Expression Complexity. CVSS score: 5.9/10. Published 2022-12-23.
- How severe is CVE-2022-40897?
- Medium severity. CVSS v3 base score is 5.9 out of 10.
- Is CVE-2022-40897 known to be exploited?
- 30 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.