Resource exhaustion in waitress - CVE-2020-5236

 

Resource exhaustion in waitress - CVE-2020-5236

Published: February 4, 2020 / Updated: September 1, 2020


Vulnerability identifier: #VU34840
CSH Severity: Medium
CVSS v4: 7.1 [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]
CVE-ID: CVE-2020-5236
CWE-ID: CWE-400
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote authenticated user to perform a denial of service (DoS) attack.

Waitress version 1.4.2 allows a DOS attack When waitress receives a header that contains invalid characters. When a header like "Bad-header: xxxxxxxxxxxxxxxx10" is received, it will cause the regular expression engine to catastrophically backtrack causing the process to use 100% CPU time and blocking any other interactions. This allows an attacker to send a single request with an invalid header and take the service offline. This issue was introduced in version 1.4.2 when the regular expression was updated to attempt to match the behaviour required by errata associated with RFC7230. The regular expression that is used to validate incoming headers has been updated in version 1.4.3, it is recommended that people upgrade to the new version of Waitress as soon as possible.


Affected software

waitress
Fedora
python-waitress

How to mitigate CVE-2020-5236

Install update from vendor's website.

python-waitress - update to 1.4.3-1.el8

External References

Related Security Bulletins