Vulnerability · Published Oct 29, 2024 · Assigned by GitHub_M
CVE-2024-49769Waitress has a denial of service leading to high CPU usage/resource exhaustion
High 7.5
In plain English
A high-severity security flaw in waitress from Pylons. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | waitress | 2.1.2-2+deb12u1 | DEBIAN-CVE-2024-49769 |
| Debian:13 | waitress | 3.0.1-1 | DEBIAN-CVE-2024-49769 |
| Debian:14 | waitress | 3.0.1-1 | DEBIAN-CVE-2024-49769 |
| PyPI | waitress | 3.0.1 | GHSA-3f84-rpwh-47g6 |
| PyPI | waitress | 3.0.1 | PYSEC-2024-211 |
| Ubuntu:22.04:LTS | waitress | 1.4.4-1.1ubuntu1.1 | USN-7115-1 |
| Ubuntu:22.04:LTS | waitress | 1.4.4-1.1ubuntu1.1 | UBUNTU-CVE-2024-49769 |
Affected products (as reported)
Weakness: CWE-772 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/Pylons/waitress/security/advisories/GHSA-3f84-rpwh-47g6 x_refsource_CONFIRM
- https://github.com/Pylons/waitress/issues/418 x_refsource_MISC
- https://github.com/Pylons/waitress/pull/435 x_refsource_MISC
- https://github.com/Pylons/waitress/commit/1ae4e894c9f76543bee06584001583fc6fa8c95c x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2024/11/msg00012.html