Advisory

GHSA-r9hx-vwmv-q579

Also known as: BIT-setuptools-2022-40897, CVE-2022-40897, PYSEC-2022-43012

Summary

pypa/setuptools vulnerable to Regular Expression Denial of Service (ReDoS)

Details

Python Packaging Authority (PyPA)'s setuptools is a library designed to facilitate packaging Python projects. Setuptools version 65.5.0 and earlier could allow remote attackers to cause a denial of service by fetching malicious HTML from a PyPI package or custom PackageIndex page due to a vulnerable Regular Expression in package_index. This has been patched in version 65.5.1.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-12-23 00:30 UTC
Modified
2026-08-07 08:12 UTC

Affected packages and fixes

setuptools

PyPI · All systems

Affected

  • introduced 0, fixed 65.5.1 (ecosystem)

Fixed versions

65.5.1

Fix

  • Fixed version 65.5.1
    pip install --upgrade setuptools==65.5.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences