CVE-2022-40897: PyPA setuptools - Regular Expression Denial of Service
- Cve: CVE-2022-40897
- Name: PyPA setuptools - Regular Expression Denial of Service
- 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.
- Impact: Remote attackers can cause denial of service by exploiting the ReDoS vulnerability, disrupting package index services.
- Remediation: Update to setuptools version 65.5.1 or later.
- Vulnerability type: denial_of_service
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.9
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.02632
- Epss percentile: 0.85919
- Assignee: [email protected]
- Published at: 2022-12-23T00:15:13Z
- Age in days: 1432
- Modified at: 2026-06-17T05:02:12Z
- Patch available: yes
- Public exploits total: 1
- References total: 10
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-40897
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/ | nvd | 2022-12-23 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| python:setuptools | < 65.5.1 | no | nvd | /v1/products/python/setuptools |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| pypa/setuptools | commit, compare, fix, issues, package | yes | /v1/repositories/pypa/setuptools |
Index
- Repositories: 1277
- Repositories high signal: 880
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-12-23
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts