CVEfocus › CVE database › CVE-2019-16789

CVE-2019-16789HTTP Request Smuggling in Waitress: Invalid whitespace characters in headers

CVSS 7.1 HighEPSS 2.3% (higher than 84% of CVEs)Published 2019-12-26Updated 2024-08-05Assigner: GitHub_M

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.

CWE-444

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

18Fixed
3Fix pending
4Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04waitressNot affected
vulnerable_code_not_present
Ubuntu 25.10waitressNot affected
vulnerable_code_not_present
Ubuntu 22.04waitressNot affected
vulnerable_code_not_present
Ubuntu 20.04waitressNot affected
vulnerable_code_not_present
Ubuntu 18.04waitressFix pendingUBUNTU-CVE-2019-16789
Ubuntu 16.04waitressFix pendingUBUNTU-CVE-2019-16789
Ubuntu 14.04waitressFix pending
Debian 14waitressFixed1.4.1-1DEBIAN-CVE-2019-16789
Debian 13waitressFixed1.4.1-1DEBIAN-CVE-2019-16789
Debian 12waitressFixed1.4.1-1DEBIAN-CVE-2019-16789
Alpine Linux 3.24py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
Alpine Linux 3.23py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
Alpine Linux 3.22py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
Alpine Linux 3.21py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
Alpine Linux 3.20py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
Alpine Linux 3.19py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
Alpine Linux 3.18py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
Alpine Linux 3.17py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
Alpine Linux 3.16py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
Alpine Linux 3.15py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
Alpine Linux 3.14py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
Alpine Linux 3.13py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
Alpine Linux 3.12py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
Alpine Linux 3.11py3-waitressFixed1.4.1-r0ALPINE-CVE-2019-16789
PyPI librarywaitressFixed1.4.1GHSA-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.

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:

References

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.