Skip to main content
← All vulnerabilities
CVE-2020-5236GHSA-73M2-3PWG-5FGCPYSEC-2020-155

Catastrophic backtracking in regex allows Denial of Service in Waitress

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.4.3
1 proof of concept on GitHub

Summary

Waitress version 1.4.2 allows a DOS attack When waitress receives a header that contains invalid characters. When a header like "Bad-header: xxxxxxxxxxxxxxx\x10" 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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Pylons Waitress

    1.4.2

  • waitressPyPI

    From 1.4.2 · fixed in 1.4.3

  • waitressPyPI

    fixed in 1.4.3

References 3

GitHub · Pylons/waitress

GitHub · motikan2010/CVE-2020-5236