Fedora Account System
Red Hat Associate
Red Hat Customer
Netty's HttpObjectDecoder in netty-codec-http, the decoder behind HttpServerCodec and HttpRequestDecoder, does not reject duplicate Content-Length headers when the request line declares HTTP/1.0 or earlier. The duplicate-header check added for CVE-2019-20445 is skipped for these versions, so only the first Content-Length value is used and later ones are silently ignored. The same headers on an HTTP/1.1 request are rejected under the default configuration (allowDuplicateContentLengths=false). This is an incomplete fix for CVE-2019-20445. If the first Content-Length value is 0, the decoder treats the message as having no body and completes it immediately. Any remaining bytes that the sender or an upstream proxy considers part of that request's body are then parsed as a separate, second HTTP request on the same connection. An unauthenticated network client can trigger this at the codec layer, before any application authentication. The result is HTTP request smuggling. Depending on the deployment, this can allow access-control bypass of paths a front-end proxy would not otherwise expose, cache poisoning, and injection of attacker-controlled requests and headers. Exploitation requires a front-end proxy that forwards multiple Content-Length headers without normalizing them. HTTP/1.1, HTTP/2 and HTTP/3 handling is not affected by this bypass. Affected are users of netty-codec-http that accept HTTP traffic with HttpServerCodec or HttpRequestDecoder, in versions up to and including 4.1.138.Final and from 4.2.0.Final through 4.2.18.Final, with the default configuration. The issue is fixed in 4.1.139.Final and 4.2.19.Final. Affected versions: >= 4.2.0.Final, <= 4.2.18.Final; <=4.1.138.Final Patched versions: 4.2.19.Final; 4.1.139.Final CVSS: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N (6.3) CWE: CWE-444 Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-vwgc-hvc9-2j59 CVE requested by the Netty Project via PSIRTSUPT-32166.