{"id":"CVE-2022-31015","aliases":["ALPINE-CVE-2022-31015","AZL-43513","AZL-44571","DEBIAN-CVE-2022-31015","EUVD-2022-0359","GHSA-f5x9-8jwc-25rw","PYSEC-2022-205","openSUSE-SU-2024:12346-1","openSUSE-SU-2025:15108-1"],"status":"published","title":"Uncaught Exception (due to a data race) leads to process termination in Waitress","description":"Waitress is a Web Server Gateway Interface server for Python 2 and 3. Waitress versions 2.1.0 and 2.1.1 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. This issue has been fixed in Waitress 2.1.2 by no longer allowing the WSGI thread to close the socket. Instead, that is always delegated to the main thread. There is no work-around for this issue. However, users using waitress behind a reverse proxy server are less likely to have issues if the reverse proxy always reads the full response.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01498,"percentile":0.74413,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-248","CWE-362"],"published":"2022-05-31T22:50:12Z","modified":"2026-11-03T08:01:16Z","fixes":[{"ecosystem":"PyPI","package":"waitress","fixed_in":["2.1.2"],"sources":["ghsa","osv"]},{"ecosystem":"Alpine:v3.16","package":"py3-waitress","fixed_in":["2.1.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"py3-waitress","fixed_in":["2.1.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"py3-waitress","fixed_in":["2.1.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"py3-waitress","fixed_in":["2.1.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"py3-waitress","fixed_in":["2.1.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"py3-waitress","fixed_in":["2.1.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"py3-waitress","fixed_in":["2.1.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"py3-waitress","fixed_in":["2.1.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"py3-waitress","fixed_in":["2.1.2-r0"],"sources":["osv"]},{"ecosystem":"Azure Linux:3","package":"python-waitress","fixed_in":["3.0.1-1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"waitress","fixed_in":["2.1.2-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"waitress","fixed_in":["2.1.2-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"waitress","fixed_in":["2.1.2-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.1.0"},{"fixed":"2.1.2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"py3-waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"py3-waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"py3-waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"py3-waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"py3-waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"py3-waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"py3-waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"py3-waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"py3-waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-r0"}]}]},{"source":"osv","ecosystem":"Azure Linux:2","package":"python-waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.4.4-7"}]}]},{"source":"osv","ecosystem":"Azure Linux:3","package":"python-waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.1-1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.1.0"},{"fixed":"2.1.2"}]}],"versions":["2.1.0","2.1.1"]},{"source":"osv","ecosystem":"PyPI","package":"waitress","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"4f6789b035610e0552738cdc4b35ca809a592d48"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.1.0"},{"fixed":"2.1.2"}]}],"versions":["2.1.0","2.1.1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"python-waitress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.2-1.4"}]}],"bundled":2}],"products":[{"vendor":"agendaless","product":"waitress"},{"vendor":"pylons","product":"waitress"}],"references":[{"url":"https://github.com/Pylons/waitress/security/advisories/GHSA-f5x9-8jwc-25rw","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/Pylons/waitress/issues/374","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","report","web"]},{"url":"https://github.com/Pylons/waitress/pull/377","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/Pylons/waitress/commit/4f6789b035610e0552738cdc4b35ca809a592d48","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31015","tags":["web","advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/waitress/PYSEC-2022-205.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-f5x9-8jwc-25rw"},{"url":"https://security.alpinelinux.org/vuln/CVE-2022-31015","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31015.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-31015","tags":["advisory"]},{"url":"https://github.com/Pylons/waitress","tags":["package"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2022-31015","tags":["web"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/6Q3O22UMHKQ3MPP3ZUQNRRPVZ4GVNVON/","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2022-24761","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2022-31015","title":"Uncaught Exception (due to a data race) leads to process termination in Waitress","description":"Waitress is a Web Server Gateway Interface server for Python 2 and 3. Waitress versions 2.1.0 and 2.1.1 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. This issue has been fixed in Waitress 2.1.2 by no longer allowing the WSGI thread to close the socket. Instead, that is always delegated to the main thread. There is no work-around for this issue. However, users using waitress behind a reverse proxy server are less likely to have issues if the reverse proxy always reads the full response.","status":"published","published":"2022-05-31T22:50:12Z","modified":"2025-04-22T17:55:26.641Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"cna"}],"cwes":["CWE-248","CWE-362"],"updated_at":"2026-11-02T14:34:35.279735Z"}],"euvd":[{"id":"EUVD-2022-0359","description":"Waitress is a Web Server Gateway Interface server for Python 2 and 3. Waitress versions 2.1.0 and 2.1.1 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. This issue has been fixed in Waitress 2.1.2 by no longer allowing the WSGI thread to close the socket. Instead, that is always delegated to the main thread. There is no work-around for this issue. However, users using waitress behind a reverse proxy server are less likely to have issues if the reverse proxy always reads the full response.","status":"published","published":"2022-05-31T22:50:12Z","modified":"2025-04-22T17:55:26Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T20:52:15.540112Z"}],"ghsa":[{"id":"GHSA-f5x9-8jwc-25rw","title":"Uncaught Exception (due to a data race) leads to process termination in Waitress","description":"### 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","status":"published","published":"2022-06-02T20:37:48Z","modified":"2024-11-19T16:18:35Z","cvss":[{"version":"4.0","score":7.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-248","CWE-362"],"updated_at":"2026-11-02T14:38:21.777721Z"}],"nvd":[{"id":"CVE-2022-31015","description":"Waitress is a Web Server Gateway Interface server for Python 2 and 3. Waitress versions 2.1.0 and 2.1.1 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. This issue has been fixed in Waitress 2.1.2 by no longer allowing the WSGI thread to close the socket. Instead, that is always delegated to the main thread. There is no work-around for this issue. However, users using waitress behind a reverse proxy server are less likely to have issues if the reverse proxy always reads the full response.","status":"published","published":"2022-05-31T23:15:07.96Z","modified":"2026-06-17T04:44:36.567Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-248","CWE-362"],"updated_at":"2026-11-02T14:07:21.261605Z"}],"osv":[{"id":"ALPINE-CVE-2022-31015","description":"Waitress is a Web Server Gateway Interface server for Python 2 and 3. Waitress versions 2.1.0 and 2.1.1 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. This issue has been fixed in Waitress 2.1.2 by no longer allowing the WSGI thread to close the socket. Instead, that is always delegated to the main thread. There is no work-around for this issue. However, users using waitress behind a reverse proxy server are less likely to have issues if the reverse proxy always reads the full response.","status":"published","published":"2022-05-31T23:15:07.96Z","modified":"2026-11-03T07:30:51.180962464Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-03T07:50:01.054176Z"},{"id":"AZL-43513","title":"CVE-2022-31015 affecting package python-waitress 1.4.4-7","description":"Waitress is a Web Server Gateway Interface server for Python 2 and 3. Waitress versions 2.1.0 and 2.1.1 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. This issue has been fixed in Waitress 2.1.2 by no longer allowing the WSGI thread to close the socket. Instead, that is always delegated to the main thread. There is no work-around for this issue. However, users using waitress behind a reverse proxy server are less likely to have issues if the reverse proxy always reads the full response.","status":"published","published":"2022-05-31T23:15:07Z","modified":"2026-04-21T04:31:01.712628Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:28:05.284713Z"},{"id":"AZL-44571","title":"CVE-2022-31015 affecting package python-waitress for versions less than 3.0.1-1","description":"Waitress is a Web Server Gateway Interface server for Python 2 and 3. Waitress versions 2.1.0 and 2.1.1 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. This issue has been fixed in Waitress 2.1.2 by no longer allowing the WSGI thread to close the socket. Instead, that is always delegated to the main thread. There is no work-around for this issue. However, users using waitress behind a reverse proxy server are less likely to have issues if the reverse proxy always reads the full response.","status":"published","published":"2022-05-31T23:15:07Z","modified":"2026-04-21T04:49:35.654312Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:28:05.284713Z"},{"id":"CVE-2022-31015","title":"Uncaught Exception (due to a data race) leads to process termination in Waitress","description":"Waitress is a Web Server Gateway Interface server for Python 2 and 3. Waitress versions 2.1.0 and 2.1.1 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. This issue has been fixed in Waitress 2.1.2 by no longer allowing the WSGI thread to close the socket. Instead, that is always delegated to the main thread. There is no work-around for this issue. However, users using waitress behind a reverse proxy server are less likely to have issues if the reverse proxy always reads the full response.","status":"published","published":"2022-05-31T22:50:12Z","modified":"2026-10-28T02:30:21.706269361Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-248","CWE-362"],"updated_at":"2026-11-02T15:44:25.516981Z"},{"id":"DEBIAN-CVE-2022-31015","description":"Waitress is a Web Server Gateway Interface server for Python 2 and 3. Waitress versions 2.1.0 and 2.1.1 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. This issue has been fixed in Waitress 2.1.2 by no longer allowing the WSGI thread to close the socket. Instead, that is always delegated to the main thread. There is no work-around for this issue. However, users using waitress behind a reverse proxy server are less likely to have issues if the reverse proxy always reads the full response.","status":"published","published":"2022-05-31T23:15:07.96Z","modified":"2026-11-03T08:01:16.958480384Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-03T08:25:01.007408Z"},{"id":"GHSA-f5x9-8jwc-25rw","title":"Uncaught Exception (due to a data race) leads to process termination in Waitress","description":"### 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","status":"published","published":"2022-06-02T20:37:48Z","modified":"2024-11-19T16:22:52.848754Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"},{"version":"4.0","score":7.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-248","CWE-362"],"updated_at":"2026-11-02T15:46:46.006631Z"},{"id":"openSUSE-SU-2024:12346-1","title":"python310-waitress-2.1.2-3.1 on GA media","description":"These are all security issues fixed in the python310-waitress-2.1.2-3.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:34:00.933331Z","updated_at":"2026-11-02T16:58:35.751245Z"},{"id":"openSUSE-SU-2025:15108-1","title":"python311-waitress-3.0.2-1.4 on GA media","description":"These are all security issues fixed in the python311-waitress-3.0.2-1.4 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2025-05-17T00:00:00Z","modified":"2025-05-22T10:59:08.455805Z","updated_at":"2026-11-02T16:58:37.399567Z"},{"id":"PYSEC-2022-205","description":"Waitress is a Web Server Gateway Interface server for Python 2 and 3. Waitress versions 2.1.0 and 2.1.1 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. This issue has been fixed in Waitress 2.1.2 by no longer allowing the WSGI thread to close the socket. Instead, that is always delegated to the main thread. There is no work-around for this issue. However, users using waitress behind a reverse proxy server are less likely to have issues if the reverse proxy always reads the full response.","status":"published","published":"2022-05-31T23:15:00Z","modified":"2023-11-08T04:09:22.536443Z","updated_at":"2026-11-02T15:52:53.449407Z"}]}}
