CVE-2021-25122Apache Tomcat h2c request mix-up
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | tomcat9 | Fixed | 9.0.31-1ubuntu0.2 | UBUNTU-CVE-2021-25122 |
| Ubuntu 18.04 | tomcat8 | Fix pending | 8.5.39-1ubuntu1~18.04.3+esm2 (Ubuntu Pro) | UBUNTU-CVE-2021-25122 |
| Ubuntu 18.04 | tomcat9 | Fixed | 9.0.16-3ubuntu0.18.04.2 | UBUNTU-CVE-2021-25122 |
| Ubuntu 16.04 | tomcat6 | Fix pending | ||
| Ubuntu 16.04 | tomcat7 | Fix pending | ||
| Ubuntu 16.04 | tomcat8 | Not affected vulnerable_code_not_present | ||
| Debian 14 | tomcat9 | Fixed | 9.0.43-1 | DEBIAN-CVE-2021-25122 |
| Debian 13 | tomcat9 | Fixed | 9.0.43-1 | DEBIAN-CVE-2021-25122 |
| Debian 12 | tomcat9 | Fixed | 9.0.43-1 | DEBIAN-CVE-2021-25122 |
| Red Hat Enterprise Linux 8 | pki-servlet-4.0-api | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pki-servlet-engine | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | tomcat | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-admin-webapps | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-docs-webapp | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-el-2.2-api | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-javadoc | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-jsp-2.2-api | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-jsvc | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-lib | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-servlet-3.0-api | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-webapps | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6 | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-admin-webapps | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-docs-webapp | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-el-2.1-api | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-javadoc | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-jsp-2.1-api | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-lib | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-log4j | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-servlet-2.5-api | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-webapps | Not affected | ||
| Maven library | org.apache.tomcat.embed:tomcat-embed-core | Fixed | 9.0.43 | GHSA-j39c-c8hj-x4j3 |
| Maven library | org.apache.tomcat:tomcat-coyote | Fixed | 10.0.2 | GHSA-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.
- Apache Software Foundation Apache Tomcat: affected: Apache Tomcat 10 to before 10.0.2, Apache Tomcat 9 to before 9.0.42, Apache Tomcat 8.5 to before 8.5.62; fixed in
10.0.2,9.0.42,8.5.62
Vendor advisories:
- https://www.debian.org/security/2021/dsa-4891 (vendor-advisory)
- https://security.gentoo.org/glsa/202208-34 (vendor-advisory)
References
- https://lists.apache.org/thread.html/r7b95bc248603360501f18c8eb03bb6001ec0ee3296205b34b07105b7%40%3Cannounce.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r7b95bc248603360501f18c8eb03bb6001ec0ee3296205b34b07105b7%40%3Cannounce.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r7b95bc248603360501f18c8eb03bb6001ec0ee3296205b34b07105b7%40%3Cusers.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r7b95bc248603360501f18c8eb03bb6001ec0ee3296205b34b07105b7%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/rf6d5d57b114678d8898005faef31e9fd6d7c981fcc4ccfc3bc272fc9%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r7b95bc248603360501f18c8eb03bb6001ec0ee3296205b34b07105b7%40%3Cannounce.apache.org%3E
- http://www.openwall.com/lists/oss-security/2021/03/01/1
- https://lists.apache.org/thread.html/rcd90bf36b1877e1310b87ecd14ed7bbb15da52b297efd9f0e7253a3b%40%3Cusers.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/rd0463f9a5cbc02a485404c4b990f0da452e5ac5c237808edba11c947%40%3Cusers.tomcat.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2021/03/msg00018.html
- https://www.debian.org/security/2021/dsa-4891
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://security.netapp.com/advisory/ntap-20210409-0002/
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.oracle.com/security-alerts/cpujan2022.html
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.