HIGH7.5
GHSA-p22x-g9px-3945
Apache Tomcat may reject request containing invalid Content-Length header
Quick fix
GHSA-p22x-g9px-3945 — org.apache.tomcat.embed:tomcat-embed-core: upgrade to the fixed version with the command below.
# pom.xml: bump <version>8.5.83</version> for org.apache.tomcat.embed:tomcat-embed-coreDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.apache.tomcat.embed:tomcat-embed-core
Introduced in:
8.5.0Fixed in: 8.5.83Fix
# pom.xml: bump <version>8.5.83</version> for org.apache.tomcat.embed:tomcat-embed-coreMaven/org.apache.tomcat.embed:tomcat-embed-core
Introduced in:
9.0.0-M1Fixed in: 9.0.68Fix
# pom.xml: bump <version>9.0.68</version> for org.apache.tomcat.embed:tomcat-embed-coreMaven/org.apache.tomcat.embed:tomcat-embed-core
Introduced in:
10.0.0-M1Fixed in: 10.0.27Fix
# pom.xml: bump <version>10.0.27</version> for org.apache.tomcat.embed:tomcat-embed-coreMaven/org.apache.tomcat.embed:tomcat-embed-core
Introduced in:
10.1.0-M1Fixed in: 10.1.1Fix
# pom.xml: bump <version>10.1.1</version> for org.apache.tomcat.embed:tomcat-embed-coreMaven/org.apache.tomcat:tomcat-coyote
Introduced in:
9.0.0-M1Fixed in: 9.0.68Fix
# pom.xml: bump <version>9.0.68</version> for org.apache.tomcat:tomcat-coyoteMaven/org.apache.tomcat:tomcat-coyote
Introduced in:
10.0.0-M1Fixed in: 10.0.27Fix
# pom.xml: bump <version>10.0.27</version> for org.apache.tomcat:tomcat-coyoteMaven/org.apache.tomcat:tomcat-coyote
Introduced in:
10.1.0-M1Fixed in: 10.1.1Fix
# pom.xml: bump <version>10.1.1</version> for org.apache.tomcat:tomcat-coyoteReferences
- https://nvd.nist.gov/vuln/detail/CVE-2022-42252[ADVISORY]
- https://github.com/apache/tomcat/commit/0d089a15047faf9cb3c82f80f4d28febd4798920[WEB]
- https://github.com/apache/tomcat/commit/4c7f4fd09d2cc1692112ef70b8ee23a7a037ae77[WEB]
- https://github.com/apache/tomcat/commit/a1c07906d8dcaf7957e5cc97f5cdbac7d18a205a[WEB]
- https://github.com/apache/tomcat/commit/c9fe754e5d17e262dfbd3eab2a03ca96ff372dc3[WEB]
- https://github.com/apache/tomcat[PACKAGE]
- https://lists.apache.org/thread/zzcxzvqfdqn515zfs3dxb7n8gty589sq[WEB]
- https://security.gentoo.org/glsa/202305-37[WEB]
- https://tomcat.apache.org/security-10.html[WEB]
- https://tomcat.apache.org/security-8.html[WEB]
- https://tomcat.apache.org/security-9.html[WEB]