Advisory

GHSA-3f84-rpwh-47g6

Also known as: CVE-2024-49769, PYSEC-2024-211

Summary

Waitress vulnerable to DoS leading to high CPU usage/resource exhaustion

Details

Impact

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.

Patches

Waitress 3.0.1 contains fixes that remove the race condition.

Workarounds

No work-around.

References

  • https://github.com/Pylons/waitress/issues/418
  • https://github.com/Pylons/waitress/pull/435

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-10-29 14:33 UTC
Modified
2025-01-21 18:19 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences