{"id":"CVE-2022-31015","aliases":["GHSA-f5x9-8jwc-25rw","PYSEC-2022-205"],"url":"https://o3.security/vulnerability/CVE-2022-31015","summary":"Uncaught Exception (due to a data race) leads to process termination in Waitress","details":"### Impact\n\nWaitress may terminate early due to a thread closing a socket while the main thread is about to call select(). This will lead to the main thread raising an exception that is not handled and then causing the entire application to be killed.\n\n### Patches\n\nThis issue has been fixed in Waitress 2.1.2 by no longer allowing the WSGI thread to close the socket, instead it is always delegated to the main thread.\n\n### Workarounds\n\nThere is no work-around, however users using waitress behind a reverse proxy server are less likely to have issues if the reverse proxy always reads the full response.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in https://github.com/Pylons/waitress/issues (if not sensitive or security related)\n* email the Pylons Security mailing list: [pylons-project-security@googlegroups.com](mailto:pylons-project-security@googlegroups.com) (if security related)\n","published":"2022-05-31T22:50:12Z","modified":"2026-08-12T03:51:36.789379416Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},"epss":{"score":0.01474,"percentile":0.71422,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"PyPI","name":"waitress","fixedVersion":"2.1.2"}],"fix":{"url":"https://github.com/Pylons/waitress/commit/4f6789b035610e0552738cdc4b35ca809a592d48","label":"Pylons/waitress@4f6789b"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31015.json"},{"type":"ADVISORY","url":"https://github.com/Pylons/waitress/security/advisories/GHSA-f5x9-8jwc-25rw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31015"},{"type":"REPORT","url":"https://github.com/Pylons/waitress/issues/374"},{"type":"FIX","url":"https://github.com/Pylons/waitress/commit/4f6789b035610e0552738cdc4b35ca809a592d48"},{"type":"FIX","url":"https://github.com/Pylons/waitress/pull/377"},{"type":"PACKAGE","url":"https://github.com/Pylons/waitress"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/waitress/PYSEC-2022-205.yaml"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:36.789379416Z"}}