Advisory

PYSEC-2024-211

Also known as: CVE-2024-49769, GHSA-3f84-rpwh-47g6

Summary

The record has no summary.

Details

Waitress is a Web Server Gateway Interface server for Python 2 and 3. When a remote client closes the connection before waitress has had the opportunity to call getpeername() waitress won't correctly clean up the connection leading to the main thread attempting to write to a socket that no longer exists, but not removing it from the list of sockets to attempt to process. This leads to a busy-loop calling the write function. A remote attacker could run waitress out of available sockets with very little resources required. Waitress 3.0.1 contains fixes that remove the race condition.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2024-10-29 15:15 UTC
Modified
2025-01-19 19:56 UTC

Affected packages and fixes

waitress

PyPI · All systems

Affected

  • introduced 0, fixed 3.0.1 (ecosystem)

Fixed versions

3.0.1

Fix

  • Fixed version 3.0.1
    pip install --upgrade waitress==3.0.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: PyPA Advisory Database · CC BY 4.0

Sources & licences