# CVE-2022-31015: waitress: Waitress is a Web Server Gateway Interface server for Python 2 and 3

CVE-2022-31015 is fixed in waitress on 1 platform, first by DEBIAN-CVE-2022-31015, released May 31, 2022. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-31015
- Priority: Routine
- CVSS: 5.9 (medium)
- EPSS: 0.0150
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 31, 2022

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | waitress Debian 12.15 (bookworm) | 2.1.2-1 | [DEBIAN-CVE-2022-31015](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31015.md) | May 31, 2022 |
| Linux | waitress Debian 13.5 (trixie) | 2.1.2-1 | [DEBIAN-CVE-2022-31015](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31015.md) | May 31, 2022 |
| Linux | waitress Debian 14 | 2.1.2-1 | [DEBIAN-CVE-2022-31015](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31015.md) | May 31, 2022 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
