{"id":"CVE-2024-49769","aliases":["CVE-2024-49769","GHSA-3f84-rpwh-47g6","PYSEC-2024-211"],"related":[],"kind":"vulnerability","state":"published","title":"Waitress has a denial of service leading to high CPU usage/resource exhaustion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWhen 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.\n\nA remote attacker could run waitress out of available sockets with very little resources required.\n\n### Patches\n\nWaitress 3.0.1 contains fixes that remove the race condition.\n\n### Workarounds\n\nNo work-around.\n\n### References\n\n- https://github.com/Pylons/waitress/issues/418\n- https://github.com/Pylons/waitress/pull/435","format":"markdown","source":"ghsa"},{"lang":"es","text":"Waitress es un servidor de interfaz de puerta de enlace de servidor web para Python 2 y 3. Cuando un cliente remoto cierra la conexión antes de que waitress haya tenido la oportunidad de llamar a getpeername(), waitress no limpiará correctamente la conexión, lo que lleva al hilo principal a intentar escribir en un socket que ya no existe, pero no lo eliminará de la lista de sockets que se intentarán procesar. Esto conduce a un bucle de actividad que llama a la función de escritura. Un atacante remoto podría dejar a waitress sin sockets disponibles y requerir muy pocos recursos. Waitress 3.0.1 contiene correcciones que eliminan la condición de carrera.","source":"nvd"}],"published":"2024-10-29T14:18:40.951Z","modified":"2026-06-17T08:00:24.887Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-772"],"affected":[{"ranges":[{"version":"< 3.0.1","status":"affected"}],"vendor":"Pylons","product":"waitress","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"3.0.1","status":"affected"}],"vendor":"pylons","product":"waitress","cpe":"cpe:2.3:a:pylons:waitress:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.0.1"}],"ecosystem":"PyPI","package":"waitress","purl":"pkg:pypi/waitress","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.0.1"}],"vendor":"agendaless","product":"waitress","cpe":"cpe:2.3:a:agendaless:waitress:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"1ae4e894c9f76543bee06584001583fc6fa8c95c"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.0.1"}],"ecosystem":"PyPI","package":"waitress","purl":"pkg:pypi/waitress","repo":"https://github.com/pylons/waitress","source":"pysec"}],"references":[{"url":"https://github.com/Pylons/waitress/security/advisories/GHSA-3f84-rpwh-47g6","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/Pylons/waitress/issues/418","tags":["issue-tracking","report","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/Pylons/waitress/pull/435","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/Pylons/waitress/commit/1ae4e894c9f76543bee06584001583fc6fa8c95c","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00012.html","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49769","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Pylons/waitress","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/waitress/PYSEC-2024-211.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-10-29T14:56:24.506Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-49769","url":"https://www.cve.org/CVERecord?id=CVE-2024-49769","licence":"CVE Terms of Use","modified":"2024-11-17T00:11:26.954Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3f84-rpwh-47g6","url":"https://github.com/advisories/GHSA-3f84-rpwh-47g6","licence":"CC-BY-4.0","modified":"2025-01-21T18:19:46.257Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-49769","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49769","licence":"Public domain","modified":"2026-06-17T08:00:24.887Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-211","url":"https://osv.dev/vulnerability/PYSEC-2024-211","licence":"CC-BY-4.0","modified":"2025-01-19T19:56:44.597Z"}],"updatedAt":"2026-11-25T22:58:47.492Z","epss":{"score":0.01365,"percentile":0.72632,"date":"2026-12-01T12:00:22.000Z"}}