CVE-2024-49769: Waitress has a denial of service leading to high CPU usage/resource exhaustion

Published Oct 29, 2024
·
Updated

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

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
debian/waitress<=1.4.4-1.1+deb11u1, <=2.1.2-2
1.4.4-1.1+deb11u23.0.2-1
pip/waitress<3.0.1
3.0.1
Agendaless Waitress<3.0.1

Event History

Oct 29, 2024
CVE Published
via MITRE·02:18 PM
Data Sourced
via MITRE·02:18 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·02:33 PM
Data Sourced
via Red Hat·03:01 PM
DescriptionSeverityAffected Software
Nov 23, 2024
Data Sourced
via Ubuntu·05:22 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-49769?

CVE-2024-49769 has been classified as a moderate severity vulnerability due to potential denial of service risks.

2

How do I fix CVE-2024-49769?

To fix CVE-2024-49769, users should upgrade their Waitress package to version 1.4.4-1.1+deb11u2 or later from Debian, or version 3.0.2 or later from pip.

3

Which versions of Waitress are affected by CVE-2024-49769?

CVE-2024-49769 affects Waitress versions up to and including 1.4.4-1.1+deb11u1 for Debian and versions prior to 3.0.2 for pip.

4

Is CVE-2024-49769 remotely exploitable?

Yes, CVE-2024-49769 can be exploited remotely due to its nature involving client-server communications.

5

What type of vulnerability is CVE-2024-49769?

CVE-2024-49769 is classified as a resource management vulnerability that can lead to improper handling of socket connections.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203