5.9
MEDIUM
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 :

Oct. 29, 2024, 3:35 p.m.

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.

Affected Products

The following products are affected by CVE-2022-40897 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Python setuptools

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

Updated: 3 weeks, 2 days ago
0 stars 0 fork 0 watcher
Born at : Oct. 30, 2024, 10:41 p.m. This repo has been linked 31 different CVEs too.

None

Dockerfile Python HTML

Updated: 1 month, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : Sept. 26, 2024, 4:44 p.m. This repo has been linked 26 different CVEs too.

System-wide Python package discovery and validation

Rust Python

Updated: 1 week, 2 days ago
3 stars 0 fork 0 watcher
Born at : Sept. 13, 2024, 3:40 p.m. This repo has been linked 5 different CVEs too.

None

Dockerfile

Updated: 2 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : Sept. 8, 2024, 3:07 p.m. This repo has been linked 3 different CVEs too.

System-wide Python package discovery, validation, and allow-listing

Rust

Updated: 1 week, 6 days ago
1 stars 0 fork 0 watcher
Born at : Aug. 26, 2024, 11:17 p.m. This repo has been linked 5 different CVEs too.

Repository of SENECHAL-Morgan-M1-APP-BDML

Dockerfile PowerShell Shell Python JavaScript HCL

Updated: 5 months ago
0 stars 0 fork 0 watcher
Born at : March 28, 2024, 1:58 p.m. This repo has been linked 2 different CVEs too.

None

Dockerfile Shell

Updated: 10 months ago
0 stars 0 fork 0 watcher
Born at : Jan. 18, 2024, 5:59 p.m. This repo has been linked 4 different CVEs too.

None

Dockerfile Procfile Python HTML Mako

Updated: 11 months, 1 week ago
1 stars 0 fork 0 watcher
Born at : Nov. 6, 2023, 10:32 p.m. This repo has been linked 5 different CVEs too.

None

Python Dockerfile

Updated: 1 year, 1 month ago
0 stars 0 fork 0 watcher
Born at : Oct. 20, 2023, 10:01 a.m. This repo has been linked 2 different CVEs too.

None

Dockerfile Python

Updated: 1 year, 1 month ago
0 stars 0 fork 0 watcher
Born at : Oct. 2, 2023, 1:06 a.m. This repo has been linked 1 different CVEs too.

for devops training

Python

Updated: 1 year, 1 month ago
0 stars 0 fork 0 watcher
Born at : Sept. 28, 2023, 9:28 p.m. This repo has been linked 1 different CVEs too.

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

Updated: 4 months, 3 weeks ago
182 stars 0 fork 0 watcher
Born at : July 30, 2023, 4:46 p.m. This repo has been linked 265 different CVEs too.

Demo repository showcasing some of the possibilities of Aqua Trivy.

cncf-demo trivy

Dockerfile Shell

Updated: 1 year, 3 months ago
0 stars 0 fork 0 watcher
Born at : May 6, 2023, 9:42 a.m. This repo has been linked 27 different CVEs too.

None

delivery-engineering delivery-eng buildkite-plugin

Shell Makefile

Updated: 2 weeks, 6 days ago
9 stars 9 fork 9 watcher
Born at : June 23, 2022, 1:12 p.m. This repo has been linked 5 different CVEs too.

None

Updated: 2 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : Oct. 18, 2021, 11:07 a.m. This repo has been linked 10 different CVEs too.

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 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]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
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.53 }} -0.01%

score

0.77292

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability