CVE-2022-42252 Apache Tomcat request smuggling via malformed content-length
Attackers can perform request smuggling if Tomcat is configured to ignore invalid headers, potentially bypassing security controls.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-42252?
CVE-2022-42252 is a high-severity vulnerability in Apache Tomcat, published on 1 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-444
Which versions are affected by CVE-2022-42252?
15 open source packages ship an affected version, including org.apache.tomcat.embed:tomcat-embed-core, tomcat and org.apache.tomcat:tomcat-coyote. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.tomcat.embed:tomcat-embed-core Maven | From 10.0.0-M1 | 10.0.27 |
org.apache.tomcat.embed:tomcat-embed-core Maven | From 10.0.0-M1 | 10.0.27 |
org.apache.tomcat.embed:tomcat-embed-core Maven | From 10.1.0-M1 | 10.1.1 |
org.apache.tomcat.embed:tomcat-embed-core Maven | From 10.1.0-M1 | 10.1.1 |
org.apache.tomcat.embed:tomcat-embed-core Maven | From 8.5.0 | 8.5.83 |
org.apache.tomcat.embed:tomcat-embed-core Maven | From 8.5.0 | 8.5.83 |
9 more packages
org.apache.tomcat.embed:tomcat-embed-core Maven | From 9.0.0-M1 | 9.0.68 |
org.apache.tomcat.embed:tomcat-embed-core Maven | From 9.0.0-M1 | 9.0.68 |
tomcat Bitnami | From 8.5.0 | 8.5.83, 9.0.68, 10.0.27, 10.1.1 |
org.apache.tomcat:tomcat-coyote Maven | From 10.0.0-M1 | 10.0.27 |
org.apache.tomcat:tomcat-coyote Maven | From 10.0.0-M1 | 10.0.27 |
org.apache.tomcat:tomcat-coyote Maven | From 10.1.0-M1 | 10.1.1 |
org.apache.tomcat:tomcat-coyote Maven | From 10.1.0-M1 | 10.1.1 |
org.apache.tomcat:tomcat-coyote Maven | From 9.0.0-M1 | 9.0.68 |
org.apache.tomcat:tomcat-coyote Maven | From 9.0.0-M1 | 9.0.68 |
Linux distribution packages (8)
tomcat SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 8.0.53-29.57.1 |
tomcat SUSE:Linux Enterprise Server 12 SP3-BCL | All versions | 8.0.53-29.57.1 |
tomcat SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 9.0.36-3.93.1 |
tomcat SUSE:Linux Enterprise Server 12 SP5 | All versions | 9.0.36-3.93.1 |
tomcat SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 9.0.36-3.93.1 |
tomcat SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 9.0.36-3.93.1 |
tomcat SUSE:OpenStack Cloud 9 | All versions | 9.0.36-3.93.1 |
tomcat SUSE:OpenStack Cloud Crowbar 9 | All versions | 9.0.36-3.93.1 |
Products include Apache Tomcat.
How do I fix CVE-2022-42252?
Upgrade org.apache.tomcat.embed:tomcat-embed-core to a fixed version for your release line: 10.0.27, 10.1.1, 8.5.83 or 9.0.68.
Is CVE-2022-42252 being exploited?
There is no known exploitation of CVE-2022-42252 in the wild and no public exploit code.
Other vulnerabilities in Apache Tomcat
Sources
Also known as BIT-tomcat-2022-42252, CLEANSTART-2026-AT03088, CLSA-2026-1793133072, DEBIAN-CVE-2022-42252, GHSA-p22x-g9px-3945, OESA-2023-1058 and 5 more.