Apache Tomcat may reject request containing invalid Content-Length header
Published 1 Nov 2022 · Updated 23 Apr 2024
Is your project on an affected org.apache.tomcat.embed:tomcat-embed-core?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=8.5.0 <8.5.83
- Fixed in
- 8.5.83
mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=8.5.83 -DforceVersion=true- Affected
- >=9.0.0-M1 <9.0.68
- Fixed in
- 9.0.68
mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=9.0.68 -DforceVersion=true- Affected
- >=10.0.0-M1 <10.0.27
- Fixed in
- 10.0.27
mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=10.0.27 -DforceVersion=true- Affected
- >=10.1.0-M1 <10.1.1
- Fixed in
- 10.1.1
mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=10.1.1 -DforceVersion=true- Affected
- >=9.0.0-M1 <9.0.68
- Fixed in
- 9.0.68
mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-coyote -DdepVersion=9.0.68 -DforceVersion=true- Affected
- >=10.0.0-M1 <10.0.27
- Fixed in
- 10.0.27
mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-coyote -DdepVersion=10.0.27 -DforceVersion=true- Affected
- >=10.1.0-M1 <10.1.1
- Fixed in
- 10.1.1
mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-coyote -DdepVersion=10.1.1 -DforceVersion=trueDetails
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.
Is GHSA-p22x-g9px-3945 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.tomcat.embed:tomcat-embed-core, and gives you the command that fixes it.
More advisories for org.apache.tomcat.embed:tomcat-embed-core
- CriticalCVE-2026-65905Apache Tomcat's DIGEST authenticator has an Authentication Bypass by Capture-replay vulnerability · 26 Aug 2026
- CriticalCVE-2026-65637Apache Tomcat - HTTP/2 no-authority bypass of strict SNI validation · 26 Aug 2026
- CriticalCVE-2026-65182Apache Tomcat has an Improper Access Control, Incorrect Authorization vulnerability · 26 Aug 2026
- CriticalCVE-2026-68525Apache Tomcat's FORM authentication process has an Incorrect Authorization vulnerability · 26 Aug 2026
- CriticalCVE-2026-55276Apache Tomcat has an Always-Incorrect Control Flow Implementation vulnerability · 29 Jun 2026
- HighCVE-2026-55957Apache Tomcat has a Missing Critical Step in Authentication vulnerability · 29 Jun 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-42252
- Linkgithub.com/apache/tomcat/commit/0d089a15047faf9cb3c82f80f4d28febd4798920
- Linkgithub.com/apache/tomcat/commit/4c7f4fd09d2cc1692112ef70b8ee23a7a037ae77
- Linkgithub.com/apache/tomcat/commit/a1c07906d8dcaf7957e5cc97f5cdbac7d18a205a
- Linkgithub.com/apache/tomcat/commit/c9fe754e5d17e262dfbd3eab2a03ca96ff372dc3
- Packagegithub.com/apache/tomcat
- Linklists.apache.org/thread/zzcxzvqfdqn515zfs3dxb7n8gty589sq
- Linksecurity.gentoo.org/glsa/202305-37
- Linktomcat.apache.org/security-10.html
- Linktomcat.apache.org/security-8.html
- Linktomcat.apache.org/security-9.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.