CVEfocus › CVE database › CVE-2022-42252

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

CVSS 7.5 HighEPSS 1.7% (higher than 77% of CVEs)Published 2022-11-01Updated 2025-05-06Assigner: apache

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.

CWE-444

What to do

Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
6Fix pending
44Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04tomcat10Not affected
vulnerable_code_not_present
Ubuntu 26.04tomcat9Not affected
vulnerable_code_not_present
Ubuntu 25.10tomcat10Not affected
vulnerable_code_not_present
Ubuntu 25.10tomcat9Not affected
vulnerable_code_not_present
Ubuntu 22.04tomcat9Fix pending9.0.58-1ubuntu0.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-42252
Ubuntu 20.04tomcat9Fixed9.0.31-1ubuntu0.5UBUNTU-CVE-2022-42252
Ubuntu 18.04tomcat8Fix pending8.5.39-1ubuntu1~18.04.3+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-42252
Ubuntu 18.04tomcat9Fix pending9.0.16-3ubuntu0.18.04.2+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-42252
Ubuntu 16.04tomcat6Fix pending
Ubuntu 16.04tomcat7Fix pending
Ubuntu 16.04tomcat8Fix pending
Debian 14tomcat9Fixed9.0.68-1DEBIAN-CVE-2022-42252
Debian 13tomcat9Fixed9.0.68-1DEBIAN-CVE-2022-42252
Debian 12tomcat9Fixed9.0.68-1DEBIAN-CVE-2022-42252
Red Hat Enterprise Linux 9pki-servlet-4.0-apiNot affected
Red Hat Enterprise Linux 9pki-servlet-engineNot affected
Red Hat Enterprise Linux 9tomcatNot affected
Red Hat Enterprise Linux 9tomcat-admin-webappsNot affected
Red Hat Enterprise Linux 9tomcat-docs-webappNot affected
Red Hat Enterprise Linux 9tomcat-el-3.0-apiNot affected
Red Hat Enterprise Linux 9tomcat-jsp-2.3-apiNot affected
Red Hat Enterprise Linux 9tomcat-libNot affected
Red Hat Enterprise Linux 9tomcat-servlet-4.0-apiNot affected
Red Hat Enterprise Linux 9tomcat-webappsNot affected
Red Hat Enterprise Linux 8pki-servlet-4.0-apiNot affected
Red Hat Enterprise Linux 8pki-servlet-engineNot affected
Red Hat Enterprise Linux 8tomcatNot affected
Red Hat Enterprise Linux 8tomcat-admin-webappsNot affected
Red Hat Enterprise Linux 8tomcat-docs-webappNot affected
Red Hat Enterprise Linux 8tomcat-el-3.0-apiNot affected
Red Hat Enterprise Linux 8tomcat-jsp-2.3-apiNot affected
Red Hat Enterprise Linux 8tomcat-libNot affected
Red Hat Enterprise Linux 8tomcat-servlet-4.0-apiNot affected
Red Hat Enterprise Linux 8tomcat-webappsNot affected
Red Hat Enterprise Linux 7tomcatNot affected
Red Hat Enterprise Linux 7tomcat-admin-webappsNot affected
Red Hat Enterprise Linux 7tomcat-docs-webappNot affected
Red Hat Enterprise Linux 7tomcat-el-2.2-apiNot affected
Red Hat Enterprise Linux 7tomcat-javadocNot affected
Red Hat Enterprise Linux 7tomcat-jsp-2.2-apiNot affected
Red Hat Enterprise Linux 7tomcat-jsvcNot affected
Red Hat Enterprise Linux 7tomcat-libNot affected
Red Hat Enterprise Linux 7tomcat-servlet-3.0-apiNot affected
Red Hat Enterprise Linux 7tomcat-webappsNot affected
Red Hat Enterprise Linux 6tomcat6Not affected
Red Hat Enterprise Linux 6tomcat6-admin-webappsNot affected
Red Hat Enterprise Linux 6tomcat6-docs-webappNot affected
Red Hat Enterprise Linux 6tomcat6-el-2.1-apiNot affected
Red Hat Enterprise Linux 6tomcat6-javadocNot affected
Red Hat Enterprise Linux 6tomcat6-jsp-2.1-apiNot affected
Red Hat Enterprise Linux 6tomcat6-libNot affected
Red Hat Enterprise Linux 6tomcat6-log4jNot affected
Red Hat Enterprise Linux 6tomcat6-servlet-2.5-apiNot affected
Red Hat Enterprise Linux 6tomcat6-webappsNot affected
Maven libraryorg.apache.tomcat.embed:tomcat-embed-coreFixed9.0.68GHSA-p22x-g9px-3945
Maven libraryorg.apache.tomcat:tomcat-coyoteFixed10.0.27GHSA-p22x-g9px-3945

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.