{"id":"CVE-2024-49769","published":"2024-10-29T14:18:40Z","modified":"2024-11-17T00:11:26Z","title":"Waitress has a denial of service leading to high CPU usage/resource exhaustion","vendor":"Pylons","product":"waitress","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01377,"percentile":0.7274,"provenance":"source"},"cwes":[{"id":"CWE-772","name":"Missing Release of Resource after Effective Lifetime"}],"references":[{"url":"https://github.com/Pylons/waitress/security/advisories/GHSA-3f84-rpwh-47g6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Pylons/waitress/issues/418","tags":["x_refsource_MISC"]},{"url":"https://github.com/Pylons/waitress/pull/435","tags":["x_refsource_MISC"]},{"url":"https://github.com/Pylons/waitress/commit/1ae4e894c9f76543bee06584001583fc6fa8c95c","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00012.html","tags":[]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":14.55},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"pylons","affectedVersions":[{"vendor":"Pylons","product":"waitress","versions":["< 3.0.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-10-29T14:56:24.506825Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"waitress","vulnerableRanges":["<3.0.1"],"patched":["3.0.1"],"from":["GHSA-3f84-rpwh-47g6","PYSEC-2024-211"],"provenance":"source"}],"summary":{"text":"The Waitress WSGI server for Python (Pylons project) fails to clean up connections that a remote client closes before the server calls getpeername(), so the main thread keeps trying to write to a socket that no longer exists and never removes it from its processing list, producing a busy loop. A remote, unauthenticated attacker with network access to the server can exhaust its available sockets and resources by repeatedly opening and closing connections, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:04Z"},"euvd":{"id":"EUVD-2024-0188","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pylons-waitress-cve-2022-31015","parents":[{"from":"CVE-2022-31015","to":"CVE-2024-49769","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/waitress/channel.py","src/waitress/wasyncore.py"],"commits":["https://github.com/Pylons/waitress/commit/4f6789b035610e0552738cdc4b35ca809a592d48","https://github.com/Pylons/waitress/commit/1ae4e894c9f76543bee06584001583fc6fa8c95c"],"basis":"shared function","functions":["handle_write"]}]},{"from":"CVE-2024-49768","to":"CVE-2024-49769","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/waitress/channel.py"],"commits":["https://github.com/Pylons/waitress/commit/e4359018537af376cf24bd13616d861e2fb76f65","https://github.com/Pylons/waitress/commit/1ae4e894c9f76543bee06584001583fc6fa8c95c"],"basis":"rarely changed file"}]}]}}