Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-40897

published medium CVSS 3.1 · 5.9

pypa-setuptools: Regular Expression Denial of Service (ReDoS) in package_index.py

Title from Red Hat VEX

Published
22 Dec 2022, 00:00:00 UTC
Updated
04 Nov 2025, 16:09:54 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
n/a — n/an/a Affected Not stated mitre
Amazon Linux AL2 Release evaluationALAS2-2023-1979 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2-2023-2196 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2PYTHON3.8-2023-003 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2023-245 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 babel Advisory build 2.5.1-10.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 platform-python-setuptools Advisory build 39.2.0-6.el8_7.1 ALSA-2023:0835
AlmaLinux 8 python-nose-docs Advisory build 1.3.7-31.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 python-psycopg2-doc Advisory build 2.7.5-8.module_el8.9.0+3640+8d3927b5 ALSA-2024:2987
AlmaLinux 8 python-sqlalchemy-doc Advisory build 1.3.2-2.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2 Advisory build 2.7.18-17.module_el8.10.0+3783+2756348e.alma ALSA-2024:2987
AlmaLinux 8 python2-Cython Advisory build 0.28.1-7.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-Cython Advisory build 0.28.1-7.module_el8.6.0+3162+01a09e5a ALSA-2024:2987
AlmaLinux 8 python2-PyMySQL Advisory build 0.8.0-10.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-attrs Advisory build 17.4.0-10.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-babel Advisory build 2.5.1-10.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-backports Advisory build 1.0-16.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-backports Advisory build 1.0-16.module_el8.6.0+3162+01a09e5a ALSA-2024:2987
AlmaLinux 8 python2-backports-ssl_match_hostname Advisory build 3.5.0.1-12.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-bson Advisory build 3.7.0-1.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-bson Advisory build 3.7.0-1.module_el8.6.0+3162+01a09e5a ALSA-2024:2987
AlmaLinux 8 python2-chardet Advisory build 3.0.4-10.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-coverage Advisory build 4.5.1-5.module_el8.9.0+3640+8d3927b5 ALSA-2024:2987
AlmaLinux 8 python2-debug Advisory build 2.7.18-17.module_el8.10.0+3783+2756348e.alma ALSA-2024:2987
AlmaLinux 8 python2-devel Advisory build 2.7.18-17.module_el8.10.0+3783+2756348e.alma ALSA-2024:2987
AlmaLinux 8 python2-dns Advisory build 1.15.0-10.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-docs Advisory build 2.7.16-2.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-docs-info Advisory build 2.7.16-2.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-docutils Advisory build 0.14-12.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-funcsigs Advisory build 1.0.2-13.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-idna Advisory build 2.5-7.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-ipaddress Advisory build 1.0.18-6.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-jinja2 Advisory build 2.10-10.module_el8.10.0+3783+2756348e ALSA-2024:2987
AlmaLinux 8 python2-libs Advisory build 2.7.18-17.module_el8.10.0+3783+2756348e.alma ALSA-2024:2987
AlmaLinux 8 python2-lxml Advisory build 4.2.3-6.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-lxml Advisory build 4.2.3-6.module_el8.6.0+3162+01a09e5a ALSA-2024:2987
AlmaLinux 8 python2-markupsafe Advisory build 0.23-19.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-markupsafe Advisory build 0.23-19.module_el8.6.0+3162+01a09e5a ALSA-2024:2987
AlmaLinux 8 python2-mock Advisory build 2.0.0-13.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-nose Advisory build 1.3.7-31.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-numpy Advisory build 1:1.14.2-16.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-numpy Advisory build 1:1.14.2-16.module_el8.6.0+3162+01a09e5a ALSA-2024:2987
AlmaLinux 8 python2-numpy-doc Advisory build 1:1.14.2-16.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-numpy-f2py Advisory build 1:1.14.2-16.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-numpy-f2py Advisory build 1:1.14.2-16.module_el8.6.0+3162+01a09e5a ALSA-2024:2987
AlmaLinux 8 python2-pip Advisory build 9.0.3-19.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-pip-wheel Advisory build 9.0.3-19.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-pluggy Advisory build 0.6.0-8.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-psycopg2 Advisory build 2.7.5-8.module_el8.9.0+3640+8d3927b5 ALSA-2024:2987
AlmaLinux 8 python2-psycopg2-debug Advisory build 2.7.5-8.module_el8.9.0+3640+8d3927b5 ALSA-2024:2987
AlmaLinux 8 python2-psycopg2-tests Advisory build 2.7.5-8.module_el8.9.0+3640+8d3927b5 ALSA-2024:2987
AlmaLinux 8 python2-py Advisory build 1.5.3-6.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-pygments Advisory build 2.2.0-22.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-pymongo Advisory build 3.7.0-1.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-pymongo Advisory build 3.7.0-1.module_el8.6.0+3162+01a09e5a ALSA-2024:2987
AlmaLinux 8 python2-pymongo-gridfs Advisory build 3.7.0-1.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-pymongo-gridfs Advisory build 3.7.0-1.module_el8.6.0+3162+01a09e5a ALSA-2024:2987
AlmaLinux 8 python2-pysocks Advisory build 1.6.8-6.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-pytest Advisory build 3.4.2-13.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-pytest-mock Advisory build 1.9.0-4.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-pytz Advisory build 2017.2-13.module_el8.9.0+3640+8d3927b5 ALSA-2024:2987
AlmaLinux 8 python2-pyyaml Advisory build 3.12-16.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-pyyaml Advisory build 3.12-16.module_el8.6.0+3162+01a09e5a ALSA-2024:2987
AlmaLinux 8 python2-requests Advisory build 2.20.0-4.module_el8.9.0+3640+8d3927b5 ALSA-2024:2987
AlmaLinux 8 python2-rpm-macros Advisory build 3-38.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-scipy Advisory build 1.0.0-22.module_el8.9.0+3640+8d3927b5 ALSA-2024:2987
AlmaLinux 8 python2-setuptools Advisory build 39.0.1-14.module_el8.10.0+3783+2756348e ALSA-2024:2987
AlmaLinux 8 python2-setuptools-wheel Advisory build 39.0.1-14.module_el8.10.0+3783+2756348e ALSA-2024:2987
AlmaLinux 8 python2-setuptools_scm Advisory build 1.15.7-6.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-six Advisory build 1.11.0-6.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-sqlalchemy Advisory build 1.3.2-2.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-sqlalchemy Advisory build 1.3.2-2.module_el8.6.0+3162+01a09e5a ALSA-2024:2987
AlmaLinux 8 python2-test Advisory build 2.7.18-17.module_el8.10.0+3783+2756348e.alma ALSA-2024:2987
AlmaLinux 8 python2-tkinter Advisory build 2.7.18-17.module_el8.10.0+3783+2756348e.alma ALSA-2024:2987
AlmaLinux 8 python2-tools Advisory build 2.7.18-17.module_el8.10.0+3783+2756348e.alma ALSA-2024:2987
AlmaLinux 8 python2-urllib3 Advisory build 1.24.2-4.module_el8.10.0+3783+2756348e ALSA-2024:2987
AlmaLinux 8 python2-virtualenv Advisory build 15.1.0-22.module_el8.10.0+3783+2756348e ALSA-2024:2987
AlmaLinux 8 python2-wheel Advisory build 1:0.31.1-3.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python2-wheel-wheel Advisory build 1:0.31.1-3.module_el8.6.0+2781+fed64c13 ALSA-2024:2987
AlmaLinux 8 python3-setuptools Advisory build 39.2.0-6.el8_7.1 ALSA-2023:0835
AlmaLinux 8 python3-setuptools-wheel Advisory build 39.2.0-6.el8_7.1 ALSA-2023:0835
AlmaLinux 8 python39 Advisory build 3.9.18-3.module_el8.10.0+3765+2f9a457d ALSA-2024:2985
AlmaLinux 8 python39-Cython Advisory build 0.29.21-5.module_el8.6.0+2780+a40f65e1 ALSA-2024:2985
AlmaLinux 8 python39-Cython Advisory build 0.29.21-5.module_el8.6.0+3248+c431e88c ALSA-2024:2985
AlmaLinux 8 python39-PyMySQL Advisory build 0.10.1-2.module_el8.6.0+2780+a40f65e1 ALSA-2024:2985
AlmaLinux 8 python39-attrs Advisory build 20.3.0-2.module_el8.6.0+2780+a40f65e1 ALSA-2024:2985
AlmaLinux 8 python39-cffi Advisory build 1.14.3-2.module_el8.6.0+2780+a40f65e1 ALSA-2024:2985
AlmaLinux 8 python39-cffi Advisory build 1.14.3-2.module_el8.6.0+3248+c431e88c ALSA-2024:2985
AlmaLinux 8 python39-chardet Advisory build 3.0.4-19.module_el8.6.0+2780+a40f65e1 ALSA-2024:2985
AlmaLinux 8 python39-cryptography Advisory build 3.3.1-3.module_el8.10.0+3765+2f9a457d ALSA-2024:2985
AlmaLinux 8 python39-debug Advisory build 3.9.18-3.module_el8.10.0+3765+2f9a457d ALSA-2024:2985
AlmaLinux 8 python39-devel Advisory build 3.9.18-3.module_el8.10.0+3765+2f9a457d ALSA-2024:2985
AlmaLinux 8 python39-idle Advisory build 3.9.18-3.module_el8.10.0+3765+2f9a457d ALSA-2024:2985
AlmaLinux 8 python39-idna Advisory build 2.10-3.module_el8.6.0+2780+a40f65e1 ALSA-2024:2985
AlmaLinux 8 python39-iniconfig Advisory build 1.1.1-2.module_el8.6.0+2780+a40f65e1 ALSA-2024:2985
AlmaLinux 8 python39-libs Advisory build 3.9.18-3.module_el8.10.0+3765+2f9a457d ALSA-2024:2985
AlmaLinux 8 python39-lxml Advisory build 4.6.5-1.module_el8.6.0+2780+a40f65e1 ALSA-2024:2985
AlmaLinux 8 python39-lxml Advisory build 4.6.5-1.module_el8.6.0+3248+c431e88c ALSA-2024:2985
AlmaLinux 8 python39-mod_wsgi Advisory build 4.7.1-7.module_el8.9.0+3634+fb2a896c ALSA-2024:2985
AlmaLinux 8 python39-more-itertools Advisory build 8.5.0-2.module_el8.6.0+2780+a40f65e1 ALSA-2024:2985
AlmaLinux 8 python39-numpy Advisory build 1.19.4-3.module_el8.6.0+2780+a40f65e1 ALSA-2024:2985
AlmaLinux 8 python39-numpy Advisory build 1.19.4-3.module_el8.6.0+3248+c431e88c ALSA-2024:2985
AlmaLinux 8 python39-numpy-doc Advisory build 1.19.4-3.module_el8.6.0+2780+a40f65e1 ALSA-2024:2985
AlmaLinux 8 python39-numpy-f2py Advisory build 1.19.4-3.module_el8.6.0+2780+a40f65e1 ALSA-2024:2985
AlmaLinux 8 python39-numpy-f2py Advisory build 1.19.4-3.module_el8.6.0+3248+c431e88c ALSA-2024:2985

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · mitre · cna

Vendor advisories explicitly linked to this CVE.

56

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
5.9 / 10
Severity
medium
Provider
CISA-ADP · adp
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
n/a n/a n/a (affected) mitre · cna

Weaknesses

2
  • n/a (mitre · cna)
  • CWE-1333 CWE-1333 Inefficient Regular Expression Complexity (CISA-ADP · adp)

References

10

Provider assertions

3

mitre · cna

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
fa080ded08fc1acb28c3c944a4b24c5973269d9b4fa9118836197d66d6ae5682
Ingested
23 Sep 2026, 08:02:28 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected