Apache Tomcat may reject request containing invalid Content-Length header
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | 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 |
| Java / Kotlin (Maven) | 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 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-42252
- https://github.com/apache/tomcat/commit/0d089a15047faf9cb3c82f80f4d28febd4798920
- https://github.com/apache/tomcat/commit/4c7f4fd09d2cc1692112ef70b8ee23a7a037ae77
- https://github.com/apache/tomcat/commit/a1c07906d8dcaf7957e5cc97f5cdbac7d18a205a
- https://github.com/apache/tomcat/commit/c9fe754e5d17e262dfbd3eab2a03ca96ff372dc3
- https://github.com/apache/tomcat
- https://lists.apache.org/thread/zzcxzvqfdqn515zfs3dxb7n8gty589sq
- https://security.gentoo.org/glsa/202305-37
- https://tomcat.apache.org/security-10.html
- https://tomcat.apache.org/security-8.html
- https://tomcat.apache.org/security-9.html
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- Weakness (CWE)
CWE-20, CWE-444- Platform
- Java / Kotlin (Maven)
- Package
org.apache.tomcat.embed:tomcat-embed-core, org.apache.tomcat:tomcat-coyote- Disclosed
- 01.11.2022
- Updated
- 11.10.2026 12:21
Sources and licenses
OSV / GitHub Advisory Database - GHSA-p22x-g9px-3945 - CC BY 4.0
Vulnerability history: org.apache.tomcat:tomcat-coyote
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 33
- First → latest
- 06.2020 05.2026
- Without a fix
- 0
- Exploited in attacks
- 1
Severity breakdown
- Critical 2
- High 17
- Medium 13
- Low 1
Disclosures per year
- 2020: 1
- 2021: 1
- 2022: 8
- 2023: 7
- 2024: 5
- 2025: 4
- 2026: 7
-
Apache Tomcat may reject request containing invalid Content-Length header this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.