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_i…

Vulnerability class: ReDoS (Regular Expression Denial of Service)

EPSS: 0.026 (83.7th percentile) — read the EPSS interpretation.

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.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

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.