ADVISORIES

Vulnerability

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_index.py.

47 advisories report this vulnerability, across 13 ecosystems.

Advisories in Red Hat

  • RHSA-2023:0835

    Red Hat Security Advisory: python-setuptools security update

    CVE-2022-40897 Red Hat Updated 13 November 2026
  • RHSA-2023:0952

    Red Hat Security Advisory: python-setuptools security update

    CVE-2022-40897 Red Hat Updated 13 November 2026
  • RHSA-2023:6793

    Red Hat Security Advisory: rh-python38-python security update

    CVE-2007-4559CVE-2022-40897CVE-2022-40898CVE-2022-45061 Red Hat Updated 23 November 2026
  • RHSA-2023:7395

    Red Hat Security Advisory: python-setuptools security update

    CVE-2022-40897 Red Hat Updated 13 November 2026
  • RHSA-2024:2985

    Red Hat Security Advisory: python39:3.9 and python39-devel:3.9 security update

    CVE-2022-40897CVE-2023-23931CVE-2023-27043CVE-2023-43804 Red Hat Updated 13 November 2026
  • RHSA-2024:2987

    Red Hat Security Advisory: python27:2.7 security update

    CVE-2022-40897CVE-2022-48560CVE-2022-48565CVE-2023-43804 Red Hat Updated 23 November 2026
  • RHSA-2024:4421

    Red Hat Security Advisory: python39:3.9 and python39-devel:3.9 security update

    CVE-2022-40897 Red Hat Updated 13 November 2026
  • RHSA-2024:6915

    Red Hat Security Advisory: python39:3.9 security update

    CVE-2022-40897CVE-2024-6923 Red Hat Updated 24 November 2026
  • RHVEX-CVE-2022-40897

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

    Moderate CVE-2022-40897 Red Hat Updated 26 November 2026

References