waitress
Affected
- introduced
0, fixed3.0.1(ecosystem)
Fixed versions
3.0.1
Fix
- Fixed version
3.0.1pip install --upgrade waitress==3.0.1
Advisory
Also known as: CVE-2024-49769, PYSEC-2024-211
Waitress vulnerable to DoS leading to high CPU usage/resource exhaustion
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
High Basis: The source's own band: HIGH
0, fixed 3.0.1 (ecosystem)3.0.1
3.0.1pip install --upgrade waitress==3.0.1Fix 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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0