MODERATE 5.9

CVE-2021-21409

Possible request smuggling in HTTP/2 due missing validation of content-length

Description

Impact

The content-length header is not correctly validated if the request only use a single Http2HeaderFrame with the endStream set to to true. This could lead to request smuggling if the request is proxied to a remote peer and translated to HTTP/1.1

This is a followup of https://github.com/netty/netty/security/advisories/GHSA-wm47-8v5p-wjpj which did miss to fix this one case.

Patches

This was fixed as part of 4.1.61.Final

Workarounds

Validation can be done by the user before proxy the request by validating the header.

Affected Maven artifacts (3)

ArtifactAffected versionsFixed in
io.netty » netty
*
-
io.netty » netty-codec-http2
>= 4.0.0, < 4.1.61.Final
4.1.61.Final
org.jboss.netty » netty
*
-

Blast radius

3affected artifacts
246affected versions
34,865dependent artifacts (est.)
2,563,496dependent versions

74% of the dependent artifacts (26,048) still pull an affected version in their latest release.

DepthDependent versions
Direct
75,677
2 hops
412,511
3 hops
852,105
4 hops
617,429
5 hops
388,627
6 hops
217,147

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References