Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. waitress
  4. ›
  5. CVE-2020-5236

CVE-2020-5236: Catastrophic backtracking in regex allows Denial of Service in Waitress

February 4, 2020 (updated November 19, 2024)

When waitress receives a header that contains invalid characters it will cause the regular expression engine to catastrophically backtrack causing the process to use 100% CPU time and blocking any other interactions.

This would allow an attacker to send a single request with an invalid header and take the service offline.

Invalid header example:

Bad-header: xxxxxxxxxxxxxxx\x10

Increasing the number of x’s in the header will increase the amount of time Waitress spends in the regular expression engine.

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.

References

  • github.com/Pylons/waitress
  • github.com/Pylons/waitress/commit/6e46f9e3f014d64dd7d1e258eaf626e39870ee1f
  • github.com/Pylons/waitress/security/advisories/GHSA-73m2-3pwg-5fgc
  • github.com/advisories/GHSA-73m2-3pwg-5fgc
  • github.com/pypa/advisory-database/tree/main/vulns/waitress/PYSEC-2020-155.yaml
  • nvd.nist.gov/vuln/detail/CVE-2020-5236

Code Behaviors & Features

Detect and mitigate CVE-2020-5236 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.4.2 before 1.4.3, version 1.4.2

Fixed versions

  • 1.4.3

Solution

Upgrade to version 1.4.3 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

pypi/waitress/CVE-2020-5236.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:52 +0000.