5.9

CVE-2022-40897: python setuptools

Modified
AliasesMGASA-2023-0219SUSE-SU-2023:0091-1SUSE-SU-2023:0093-1
Published 22-12-2022Last modified 04-11-2025

Vulnerability summary

CVE-2022-40897 is a medium (CVSS 5.9) vulnerability in python setuptools. EPSS estimates a 2.63% chance of exploitation in the next 30 days, higher than 85.5% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.9/10
010
Medium · v3.1 (CVE.org)
EPSS score
2.63%
0%100%
Low · +0.13 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 5 · Related 2

Timeline

  1. 22-12-2022
    PublishedVulnerability first disclosed.
  2. 04-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

8 scores · 7 sources · 2 versions

EPSS trend

Probability

2.63%

Chance of exploitation in the next 30 days

Percentile

86%

Versus all other CVEs

30-day change

Increase +0.13 pp

From 2.50% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (pyup.io)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Redhat106 products
  • Cython< 0:0.29.21-5.module+el8.4.0+9822+20bf1249
  • Cython-debugsource< 0:0.29.21-5.module+el8.4.0+9822+20bf1249
  • mod_wsgi< 0:4.7.1-5.module+el8.7.0+16654+645aad7f
  • numpy< 0:1.19.4-3.module+el8.5.0+12204+54860423
  • numpy-debugsource< 0:1.19.4-3.module+el8.5.0+12204+54860423
Suse32 products
  • python-setuptools-test&distro=SUSE Linux Enterprise Module for Basesystem 15 SP4< 44.1.1-150400.3.3.1
  • python-setuptools-test&distro=SUSE Linux Enterprise Real Time 15 SP3< 40.5.0-150100.6.6.1
  • python-setuptools-wheel&distro=SUSE Linux Enterprise Module for Basesystem 15 SP4< 44.1.1-150400.3.3.1
  • python-setuptools-wheel&distro=SUSE Linux Enterprise Real Time 15 SP3< 40.5.0-150100.6.6.1
  • python-setuptools&distro=HPE Helion OpenStack 8< 36.5.0-3.3.1
Opensuse15 products
  • python-setuptools-test&distro=openSUSE Leap 15.4< 44.1.1-150400.3.3.1
  • python-setuptools-wheel&distro=openSUSE Leap 15.4< 44.1.1-150400.3.3.1
  • python-setuptools&distro=openSUSE Leap 15.4< 44.1.1-150400.3.3.1
  • python-setuptools&distro=openSUSE Leap Micro 5.2< 40.5.0-150100.6.6.1
  • python-setuptools&distro=openSUSE Leap Micro 5.3< 44.1.1-150400.3.3.1
Ubuntu3 products
  • python-pip< 1.5.4-1ubuntu4+esm2 | < 8.1.1-2ubuntu0.6+esm3 | < 9.0.1-2.3~ubuntu1.18.04.6 | < 20.0.2-5ubuntu1.7 | < 22.0.2+dfsg-1ubuntu0.1
  • python-setuptools< 3.3-1ubuntu2+esm1 | < 20.7.0-1ubuntu0.1~esm1 | < 39.0.1-2ubuntu0.1 | < 44.0.0-2ubuntu0.1 | < 44.1.1-1.2ubuntu0.22.04.1
  • setuptools< 45.2.0-1ubuntu0.1 | < 59.6.0-1.2ubuntu0.22.04.1
Chainguard2 products
  • graalvm-24-graalpyAll versions (No fix recorded)
  • graalvm-24-graalpy-venvAll versions (No fix recorded)
Debian1 product
  • setuptools< 65.6.3-1
Mageia1 product
  • python-setuptools< 56.2.0-1.1.mga8
PyPI1 product
  • setuptools< 43a9c9bfa6aa626ec2a22540bea28d2ca77964be | < 65.5.1
Python1 product

9 vendors · 162 products

References

56 links
Show all 56 references