CVE-2019-16789HTTP Request Smuggling in Waitress: Invalid whitespace characters in headers
In Waitress through version 1.4.0, if a proxy server is used in front of waitress, an invalid request may be sent by an attacker that bypasses the front-end and is parsed differently by waitress leading to a potential for HTTP request smuggling. Specially crafted requests containing special whitespace characters in the Transfer-Encoding header would get parsed by Waitress as being a chunked request, but a front-end server would use the Content-Length instead as the Transfer-Encoding header is considered invalid due to containing invalid characters. If a front-end server does HTTP pipelining to a backend Waitress server this could lead to HTTP request splitting which may lead to potential cache poisoning or unexpected information disclosure. This issue is fixed in Waitress 1.4.1 through more strict HTTP field validation.
What to do
Fixed builds are available from Alpine, Debian, PyPI: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | waitress | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | waitress | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | waitress | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | waitress | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | waitress | Fix pending | UBUNTU-CVE-2019-16789 | |
| Ubuntu 16.04 | waitress | Fix pending | UBUNTU-CVE-2019-16789 | |
| Ubuntu 14.04 | waitress | Fix pending | ||
| Debian 14 | waitress | Fixed | 1.4.1-1 | DEBIAN-CVE-2019-16789 |
| Debian 13 | waitress | Fixed | 1.4.1-1 | DEBIAN-CVE-2019-16789 |
| Debian 12 | waitress | Fixed | 1.4.1-1 | DEBIAN-CVE-2019-16789 |
| Alpine Linux 3.24 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| Alpine Linux 3.23 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| Alpine Linux 3.22 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| Alpine Linux 3.21 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| Alpine Linux 3.20 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| Alpine Linux 3.19 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| Alpine Linux 3.18 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| Alpine Linux 3.17 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| Alpine Linux 3.16 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| Alpine Linux 3.15 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| Alpine Linux 3.14 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| Alpine Linux 3.13 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| Alpine Linux 3.12 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| Alpine Linux 3.11 | py3-waitress | Fixed | 1.4.1-r0 | ALPINE-CVE-2019-16789 |
| PyPI library | waitress | Fixed | 1.4.1 | GHSA-968f-66r5-5v74 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Pylons Waitress: affected: < 1.4.1 to before 1.4.1; fixed in
1.4.1
Workaround: You may enable additional protections on front-end servers, those that follow RFC7230 correctly would drop the request with a 400 Bad Request. Waitress will now correctly responds to the request with a 400 Bad Request, and will drop the connection to avoid any potential HTTP pipelining issues.
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2020:0720 (vendor-advisory)
References
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GVDHR2DNKCNQ7YQXISJ45NT4IQDX3LJ7/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LYEOTGWJZVKPRXX2HBNVIYWCX73QYPM5/
- https://access.redhat.com/errata/RHSA-2020:0720
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://docs.pylonsproject.org/projects/waitress/en/latest/#security-fixes
- https://github.com/github/advisory-review/pull/14604
- https://github.com/Pylons/waitress/commit/11d9e138125ad46e951027184b13242a3c1de017
- https://lists.debian.org/debian-lts-announce/2022/05/msg00011.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.