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

- Severity: Medium 5.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.36%, higher than 84% of CVEs (2026-12-02)
- Published: 2020-02-04T03:05:14.000Z
- Modified: 2026-09-10T03:49:25.209Z
- Also known as: GHSA-73m2-3pwg-5fgc, PYSEC-2020-155
- Weaknesses: CWE-400
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Pylons Waitress: = 1.4.2
- waitress (PyPI): from 1.4.2 before 1.4.3; before 6e46f9e3f014d64dd7d1e258eaf626e39870ee1f; before 1.4.3
- agendaless waitress: 1.4.2

## Every score

- GitHub_M: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:C`

## References

- <https://github.com/Pylons/waitress/security/advisories/GHSA-73m2-3pwg-5fgc> (advisory, third-party-advisory, web)
- <https://github.com/Pylons/waitress/commit/6e46f9e3f014d64dd7d1e258eaf626e39870ee1f> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5236> (advisory)
- <https://github.com/Pylons/waitress> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/waitress/PYSEC-2020-155.yaml> (web)

## Sources

- CVE List: [CVE-2020-5236](https://www.cve.org/CVERecord?id=CVE-2020-5236), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-73m2-3pwg-5fgc](https://github.com/advisories/GHSA-73m2-3pwg-5fgc), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-5236](https://nvd.nist.gov/vuln/detail/CVE-2020-5236), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-155](https://osv.dev/vulnerability/PYSEC-2020-155), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-5236 · Whole record: https://cve.day/CVE-2020-5236.json · Rebuilt by cve.day 2026-11-25T22:57:50.743Z
