Missing Release of Resource after Effective Lifetime Affecting python3-waitress package, versions <0:2.1.2-1.amzn2023.0.3


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.06% (26th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-PYTHON3WAITRESS-8496046
  • published11 Dec 2024
  • disclosed29 Oct 2024

Introduced: 29 Oct 2024

CVE-2024-49769  (opens in a new tab)
CWE-772  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 python3-waitress to version 0:2.1.2-1.amzn2023.0.3 or higher.
This issue was patched in ALAS2023-2024-773.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3-waitress package and not the python3-waitress package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

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.

CVSS Scores

version 3.1