CVE-2022-40897
PyPA Setuptools HTML ReDoS 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.
INFO
Published Date :
Dec. 23, 2022, 12:15 a.m.
Last Modified :
Nov. 21, 2024, 7:22 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
2.2
Public PoC/Exploit Available at Github
CVE-2022-40897 has a 15 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-40897
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Dockerfile Shell
None
Dockerfile Python HTML
System-wide Python package discovery and validation
Rust Python
None
Dockerfile
System-wide Python package discovery, validation, and allow-listing
Rust
Repository of SENECHAL-Morgan-M1-APP-BDML
Dockerfile PowerShell Shell Python JavaScript HCL
None
Dockerfile Shell
None
Dockerfile Procfile Python HTML Mako
None
Python Dockerfile
None
Dockerfile Python
for devops training
Python
A centralized repository of standalone security patches for open source libraries.
appsec backport cve devsecops fix hotfix open-source patch protection remediation seal security update upgrade vulnerability
Demo repository showcasing some of the possibilities of Aqua Trivy.
cncf-demo trivy
Dockerfile Shell
None
delivery-engineering delivery-eng buildkite-plugin
Shell Makefile
None
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-40897
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-40897
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200 Added Reference https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be Added Reference https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1 Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/ Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/ Added Reference https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/ Added Reference https://pyup.io/vulnerabilities/CVE-2022-40897/52495/ Added Reference https://security.netapp.com/advisory/ntap-20230214-0001/ Added Reference https://security.netapp.com/advisory/ntap-20240621-0006/ -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Oct. 29, 2024
Action Type Old Value New Value Added CWE CISA-ADP CWE-1333 Added CVSS V3.1 CISA-ADP AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H -
CVE Modified by [email protected]
Jun. 21, 2024
Action Type Old Value New Value Added Reference MITRE https://security.netapp.com/advisory/ntap-20240621-0006/ [No types assigned] -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/ [No types assigned] Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/ [No types assigned] Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/ Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/ -
CWE Remap by [email protected]
Aug. 08, 2023
Action Type Old Value New Value Changed CWE NVD-CWE-Other CWE-1333 -
CVE Modified by [email protected]
May. 01, 2023
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/ [No Types Assigned] -
CVE Modified by [email protected]
Apr. 30, 2023
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/ [No Types Assigned] -
CVE Modified by [email protected]
Feb. 14, 2023
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20230214-0001/ [No Types Assigned] -
Reanalysis by [email protected]
Jan. 06, 2023
Action Type Old Value New Value Removed CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H -
Initial Analysis by [email protected]
Dec. 30, 2022
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200 No Types Assigned https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200 Third Party Advisory Changed Reference Type https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be No Types Assigned https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be Patch, Third Party Advisory Changed Reference Type https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1 No Types Assigned https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1 Release Notes, Third Party Advisory Changed Reference Type https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/ No Types Assigned https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/ Exploit, Patch, Technical Description, Vendor Advisory Changed Reference Type https://pyup.io/vulnerabilities/CVE-2022-40897/52495/ No Types Assigned https://pyup.io/vulnerabilities/CVE-2022-40897/52495/ Third Party Advisory Added CWE NIST NVD-CWE-Other Added CPE Configuration OR *cpe:2.3:a:python:setuptools:*:*:*:*:*:*:*:* versions up to (excluding) 65.5.1 -
CVE Modified by [email protected]
Dec. 27, 2022
Action Type Old Value New Value Changed Description An issue discovered in Python Packaging Authority (PyPA) setuptools 65.3.0 and earlier allows remote attackers to cause a denial of service via crafted HTML package or custom PackageIndex page. 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. Added Reference https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1 [No Types Assigned] Added Reference https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be [No Types Assigned] Added Reference https://pyup.io/vulnerabilities/CVE-2022-40897/52495/ [No Types Assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-40897
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-40897
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.65 }} 0.12%
score
0.79335
percentile