CVE-2019-16786HTTP Request Smuggling: Invalid Transfer-Encoding in Waitress
Waitress through version 1.3.1 would parse the Transfer-Encoding header and only look for a single string value, if that value was not chunked it would fall through and use the Content-Length header instead. According to the HTTP standard Transfer-Encoding should be a comma separated list, with the inner-most encoding first, followed by any further transfer codings, ending with chunked. Requests sent with: "Transfer-Encoding: gzip, chunked" would incorrectly get ignored, and the request would use a Content-Length header instead to determine the body size of the HTTP message. This could allow for Waitress to treat a single request as multiple requests in the case of HTTP pipelining. This issue is fixed in Waitress 1.4.0.
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-16786 | |
| Ubuntu 16.04 | waitress | Fix pending | UBUNTU-CVE-2019-16786 | |
| Ubuntu 14.04 | waitress | Fix pending | ||
| Debian 14 | waitress | Fixed | 1.4.1-1 | DEBIAN-CVE-2019-16786 |
| Debian 13 | waitress | Fixed | 1.4.1-1 | DEBIAN-CVE-2019-16786 |
| Debian 12 | waitress | Fixed | 1.4.1-1 | DEBIAN-CVE-2019-16786 |
| Alpine Linux 3.24 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| Alpine Linux 3.23 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| Alpine Linux 3.22 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| Alpine Linux 3.21 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| Alpine Linux 3.20 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| Alpine Linux 3.19 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| Alpine Linux 3.18 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| Alpine Linux 3.17 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| Alpine Linux 3.16 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| Alpine Linux 3.15 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| Alpine Linux 3.14 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| Alpine Linux 3.13 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| Alpine Linux 3.12 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| Alpine Linux 3.11 | py3-waitress | Fixed | 1.4.0-r0 | ALPINE-CVE-2019-16786 |
| PyPI library | waitress | Fixed | 1.3.1 | GHSA-g2xc-35jw-c63p |
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.3.1 to 1.3.1
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/Pylons/waitress/security/advisories/GHSA-g2xc-35jw-c63p
- https://github.com/Pylons/waitress/commit/f11093a6b3240fc26830b6111e826128af7771c3
- 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.