GitHub Advisory Database
GHSA-c69g-56f8-xwqj
Netty: [codec-http2] Lack of Host Header Deduplication in HTTP/2→HTTP/1.x Translation Leads to Request Routing Bypass
Details
Netty's HTTP/2-to-HTTP/1.x translation layer (Http2StreamFrameToHttpObjectCodec and InboundHttp2ToHttpAdapter) fails to deduplicate or validate Host headers when an HTTP/2 client supplies both the :authority pseudo-header and a literal host header in a single HEADERS frame. The translator maps :authority to Host and separately copies the literal host header, producing an HttpRequest object containing two Host headers with attacker-controlled differing values.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | io.netty:netty-codec-http2 | From 4.2.0.Final before 4.2.16.Final (fixed in 4.2.16.Final) |
| Maven | io.netty:netty-codec-http2 | All versions before 4.1.136.Final (fixed in 4.1.136.Final) |