CVEfocus › CVE database › CVE-2021-25122

CVE-2021-25122Apache Tomcat h2c request mix-up

CVSS 7.5 HighEPSS 17.9% (higher than 98% of CVEs)Published 2021-03-01Updated 2026-10-08Assigner: apache

When responding to new h2c connection requests, Apache Tomcat versions 10.0.0-M1 to 10.0.0, 9.0.0.M1 to 9.0.41 and 8.5.0 to 8.5.61 could duplicate request headers and a limited amount of request body from one request to another meaning user A and user B could both see the results of user A's request.

CWE-200

What to do

Likely to be exploited: EPSS gives a 18% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

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

Red Hat, Ubuntu have 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

7Fixed
5Fix pending
21Not 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 20.04tomcat9Fixed9.0.31-1ubuntu0.2UBUNTU-CVE-2021-25122
Ubuntu 18.04tomcat8Fix pending8.5.39-1ubuntu1~18.04.3+esm2 (Ubuntu Pro)UBUNTU-CVE-2021-25122
Ubuntu 18.04tomcat9Fixed9.0.16-3ubuntu0.18.04.2UBUNTU-CVE-2021-25122
Ubuntu 16.04tomcat6Fix pending
Ubuntu 16.04tomcat7Fix pending
Ubuntu 16.04tomcat8Not affected
vulnerable_code_not_present
Debian 14tomcat9Fixed9.0.43-1DEBIAN-CVE-2021-25122
Debian 13tomcat9Fixed9.0.43-1DEBIAN-CVE-2021-25122
Debian 12tomcat9Fixed9.0.43-1DEBIAN-CVE-2021-25122
Red Hat Enterprise Linux 8pki-servlet-4.0-apiFix pending
Fix deferred
Red Hat Enterprise Linux 8pki-servlet-engineFix pending
Fix deferred
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.43GHSA-j39c-c8hj-x4j3
Maven libraryorg.apache.tomcat:tomcat-coyoteFixed10.0.2GHSA-j39c-c8hj-x4j3

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.

Vendor advisories:

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.