CVE-2022-42252 Apache Tomcat request smuggling via malformed content-length

High 7.5 Published Updated

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.

PackageAffectedFixed in
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 10.0.0-M110.0.27
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 10.0.0-M110.0.27
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 10.1.0-M110.1.1
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 10.1.0-M110.1.1
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 8.5.08.5.83
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 8.5.08.5.83
9 more packages
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 9.0.0-M19.0.68
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 9.0.0-M19.0.68
tomcat BitnamiFrom 8.5.08.5.83, 9.0.68, 10.0.27, 10.1.1
org.apache.tomcat:tomcat-coyote MavenFrom 10.0.0-M110.0.27
org.apache.tomcat:tomcat-coyote MavenFrom 10.0.0-M110.0.27
org.apache.tomcat:tomcat-coyote MavenFrom 10.1.0-M110.1.1
org.apache.tomcat:tomcat-coyote MavenFrom 10.1.0-M110.1.1
org.apache.tomcat:tomcat-coyote MavenFrom 9.0.0-M19.0.68
org.apache.tomcat:tomcat-coyote MavenFrom 9.0.0-M19.0.68
Linux distribution packages (8)
tomcat SUSE:Linux Enterprise Server 12 SP2-BCLAll versions8.0.53-29.57.1
tomcat SUSE:Linux Enterprise Server 12 SP3-BCLAll versions8.0.53-29.57.1
tomcat SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions9.0.36-3.93.1
tomcat SUSE:Linux Enterprise Server 12 SP5All versions9.0.36-3.93.1
tomcat SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions9.0.36-3.93.1
tomcat SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions9.0.36-3.93.1
tomcat SUSE:OpenStack Cloud 9All versions9.0.36-3.93.1
tomcat SUSE:OpenStack Cloud Crowbar 9All versions9.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.

All Apache Tomcat vulnerabilities

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.

Is CVE-2022-42252 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free