Inconsistent interpretation of HTTP requests in waitress - CVE-2019-16789
Published: December 26, 2019 / Updated: August 3, 2020
Vulnerability details
The vulnerability allows a remote non-authenticated attacker to read and manipulate data.
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.
Affected software
py3-waitress (Alpine package)
python-waitress
Oracle Communications Cloud Native Core Network Function Cloud Native Environment
Fedora
How to mitigate CVE-2019-16789
py3-waitress (Alpine package) - update to 1.4.1-r0
python-waitress - addressed in versions 1.4.3-1.el7, 1.4.3-1.el8, 1.4.3-1.fc30, 1.4.3-1.fc31
External References
- https://access.redhat.com/errata/RHSA-2020:0720
- 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.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GVDHR2DNKCNQ7YQXISJ45NT4IQDX3LJ7/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYEOTGWJZVKPRXX2HBNVIYWCX73QYPM5/
Related Security Bulletins
- Inconsistent interpretation of HTTP requests in waitress
- Inconsistent interpretation of HTTP requests in py3-waitress (Alpine package)
- Multiple vulnerabilities in Oracle Communications Cloud Native Core Network Function Cloud Native Environment
- Fedora EPEL 8 update for python-waitress
- Fedora 31 update for python-waitress
- Fedora 30 update for python-waitress
- Fedora EPEL 7 update for python-waitress