CVE-2019-16786
HTTP Request Smuggling: Invalid Transfer-Encoding in Waitress
Reported by github_m · Published December 20, 2019
waitress is fixed in f11093a6b3240fc26830b6111e826128af7771c3, 1.4.0 and 1.3.1 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| waitress | PyPI | f11093a6b3240fc26830b6111e826128af7771c3, 1.4.0, 1.3.1 |
| py3-waitress | Alpine | 1.4.0-r0 |
| waitress | agendaless | 1.3.1 |
| Waitress | Pylons | 1.3.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Pylons | Waitress | <= 1.3.1 |
| alpine | py3-waitress | 0 |
| PyPI | waitress | 0 |
| Pylons | Waitress | 0 |
Timeline
- Dec 20, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Mar 9, 2026 Security Advisory (4 in total, the first dated here)
- Sep 13, 2026 Coalition ESS Score
- Nov 1, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-16786
vulnetix vdb fixes CVE-2019-16786
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-16786/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2020-bdcc8ffc24 vendor-advisoryx_refsource_FEDORA
- FEDORA-2020-65a7744e38 vendor-advisoryx_refsource_FEDORA
- RHSA-2020:0720 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- [debian-lts-announce] 20220512 [SECURITY] [DLA 3000-1] waitress security update mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2019-16786 advisory
- https://github.com/advisories/GHSA-g2xc-35jw-c63p advisory
- https://github.com/Pylons/waitress url
- https://github.com/pypa/advisory-database/tree/main/vulns/waitress/PYSEC-2019-137.yaml advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GVDHR2DNKCNQ7YQXISJ45NT4IQDX3LJ7 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYEOTGWJZVKPRXX2HBNVIYWCX73QYPM5 url