CVE-2021-43797
HTTP request smuggling in netty
Description
Impact
Netty currently just skips control chars when these are present at the beginning / end of the header name. We should better fail fast as these are not allowed by the spec and could lead to HTTP request smuggling.
Failing to do the validation might cause netty to "sanitize" header names before it forward these to another remote system when used as proxy. This remote system can't see the invalid usage anymore and so not do the validation itself.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.netty » netty | * | - |
| io.netty » netty-codec-http | >= 4.0.0, < 4.1.71.Final | 4.1.71.Final |
| org.jboss.netty » netty | * | - |
Blast radius
76% of the dependent artifacts (34,537) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 93,754 |
| 2 hops | 533,736 |
| 3 hops | 1,036,849 |
| 4 hops | 735,381 |
| 5 hops | 468,814 |
| 6 hops | 258,431 |
Most used dependents
- org.scalatest » scalatest20,465 usages
- org.testcontainers » testcontainers4,109 usages
- io.netty » netty-all3,584 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.kafka » kafka-clients3,135 usages
- redis.clients » jedis2,971 usages
- org.apache.spark » spark-core2,899 usages
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- org.apache.avro » avro2,427 usages
- com.android.tools.build » gradle2,197 usages
- io.vertx » vertx-core2,116 usages
- org.seleniumhq.selenium » selenium-java2,089 usages
- org.apache.zookeeper » zookeeper2,044 usages
- com.typesafe.play » play-test1,902 usages
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
- Webhttps://github.com/netty/netty/security/advisories/GHSA-wx5j-54mm-rqqq
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-43797
- Webhttps://github.com/netty/netty/pull/11891
- Webhttps://github.com/netty/netty/commit/07aa6b5938a8b6ed7a6586e066400e2643897323
- Webhttps://github.com/netty/netty
- Webhttps://lists.debian.org/debian-lts-announce/2023/01/msg00008.html
- Webhttps://security.netapp.com/advisory/ntap-20220107-0003
- Webhttps://www.debian.org/security/2023/dsa-5316
- Webhttps://www.oracle.com/security-alerts/cpuapr2022.html
- Webhttps://www.oracle.com/security-alerts/cpujul2022.html
