6.5

CVE-2022-31015: Uncaught Exception (due to a data race) leads to process termination in Waitress

Modified
AliasesGHSA-f5x9-8jwc-25rwPYSEC-2022-205DEBIAN-CVE-2022-31015
Published 31-05-2022Last modified 22-04-2025

Vulnerability summary

CVE-2022-31015 is a medium (CVSS 6.5) Uncaught Exception vulnerability in agendaless waitress. EPSS estimates a 1.50% chance of exploitation in the next 30 days, higher than 74.2% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.50%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 31-05-2022
    PublishedVulnerability first disclosed.
  2. 22-04-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 5 sources · 3 versions

EPSS trend

Probability

1.50%

Chance of exploitation in the next 30 days

Percentile

74%

Versus all other CVEs

30-day change

Increase +0.02 pp

From 1.47% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Waitress

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Agendaless1 product
Alpine1 product
  • py3-waitress< 2.1.2-r0
Debian1 product
  • waitress< 2.1.2-1
Pylons1 product
PyPI1 product
  • waitress< 4f6789b035610e0552738cdc4b35ca809a592d48 | ≥ 2.1.0, < 2.1.2

5 vendors · 5 products

References

9 links