CVE-2022-42252
Apache Tomcat may reject request containing invalid Content-Length header
Description
If Apache Tomcat 8.5.0 to 8.5.82, 9.0.0-M1 to 9.0.67, 10.0.0-M1 to 10.0.26 or 10.1.0-M1 to 10.1.0 was configured to ignore invalid HTTP headers via setting rejectIllegalHeader to false (the default for 8.5.x only), Tomcat did not reject a request containing an invalid Content-Length header making a request smuggling attack possible if Tomcat was located behind a reverse proxy that also failed to reject the request with the invalid header.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.tomcat » tomcat-coyote | >= 9.0.0-M1, < 9.0.68>= 10.0.0-M1, < 10.0.27>= 10.1.0-M1, < 10.1.1 | 9.0.68, 10.0.27, 10.1.1 |
| org.apache.tomcat.embed » tomcat-embed-core | >= 8.5.0, < 8.5.83>= 9.0.0-M1, < 9.0.68>= 10.0.0-M1, < 10.0.27>= 10.1.0-M1, < 10.1.1 | 8.5.83, 9.0.68, 10.0.27, 10.1.1 |
Blast radius
60% of the dependent artifacts (11,615) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 10,891 |
| 2 hops | 41,378 |
| 3 hops | 396,797 |
| 4 hops | 278,884 |
| 5 hops | 150,999 |
| 6 hops | 34,552 |
Most used dependents
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.thrift » libthrift1,388 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- org.springframework.boot » spring-boot-starter-websocket1,319 usages
- org.springframework.boot » spring-boot-starter-thymeleaf1,158 usages
- org.apache.flink » flink-streaming-java982 usages
- org.apache.hbase » hbase-client960 usages
- org.springframework.boot » spring-boot-starter-tomcat901 usages
- org.apache.spark » spark-mllib831 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
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-42252
- Webhttps://github.com/apache/tomcat/commit/0d089a15047faf9cb3c82f80f4d28febd4798920
- Webhttps://github.com/apache/tomcat/commit/4c7f4fd09d2cc1692112ef70b8ee23a7a037ae77
- Webhttps://github.com/apache/tomcat/commit/a1c07906d8dcaf7957e5cc97f5cdbac7d18a205a
- Webhttps://github.com/apache/tomcat/commit/c9fe754e5d17e262dfbd3eab2a03ca96ff372dc3
- Packagehttps://github.com/apache/tomcat
- Webhttps://lists.apache.org/thread/zzcxzvqfdqn515zfs3dxb7n8gty589sq
- Webhttps://security.gentoo.org/glsa/202305-37
- Webhttps://tomcat.apache.org/security-10.html
- Webhttps://tomcat.apache.org/security-8.html
- Webhttps://tomcat.apache.org/security-9.html
