CVE-2025-31651Apache Tomcat: Bypass of rules in Rewrite Valve
Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in Apache Tomcat. For a subset of unlikely rewrite rule configurations, it was possible for a specially crafted request to bypass some rewrite rules. If those rewrite rules effectively enforced security constraints, those constraints could be bypassed. This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.5, from 10.1.0-M1 through 10.1.39, from 9.0.0.M1 through 9.0.102. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions may also be affected. Users are recommended to upgrade to version [FIXED_VERSION], which fixes the issue.
What to do
Fixed builds are available from AlmaLinux, Debian, Maven, Red Hat, Rocky Linux, 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 26.04 | tomcat10 | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | tomcat9 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | tomcat10 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | tomcat11 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | tomcat9 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | tomcat10 | Fixed | 10.1.61~us1-0ubuntu1~24.04.2 | UBUNTU-CVE-2025-31651 |
| Ubuntu 22.04 | tomcat9 | Fix pending | UBUNTU-CVE-2025-31651 | |
| Ubuntu 20.04 | tomcat9 | Fix pending | UBUNTU-CVE-2025-31651 | |
| Ubuntu 18.04 | tomcat8 | Fix pending | UBUNTU-CVE-2025-31651 | |
| Ubuntu 18.04 | tomcat9 | Fix pending | UBUNTU-CVE-2025-31651 | |
| Ubuntu 16.04 | tomcat8 | Fix pending | UBUNTU-CVE-2025-31651 | |
| Debian 14 | tomcat10 | Fixed | 10.1.40-1 | DEBIAN-CVE-2025-31651 |
| Debian 14 | tomcat11 | Fixed | 11.0.6-1 | DEBIAN-CVE-2025-31651 |
| Debian 14 | tomcat9 | Fixed | 9.0.70-2 | DEBIAN-CVE-2025-31651 |
| Debian 13 | tomcat10 | Fixed | 10.1.40-1 | DEBIAN-CVE-2025-31651 |
| Debian 13 | tomcat11 | Fixed | 11.0.6-1 | DEBIAN-CVE-2025-31651 |
| Debian 13 | tomcat9 | Fixed | 9.0.70-2 | DEBIAN-CVE-2025-31651 |
| Debian 12 | tomcat10 | Fixed | 10.1.40-1 | DEBIAN-CVE-2025-31651 |
| Debian 12 | tomcat9 | Fixed | 9.0.70-2 | DEBIAN-CVE-2025-31651 |
| Red Hat Enterprise Linux 10 | tomcat | Fixed | 1:10.1.36-3.el10_1.1 | RHSA-2025:23050 |
| Red Hat Enterprise Linux 10 | tomcat-admin-webapps | Fixed | 1:10.1.36-3.el10_1.1 | RHSA-2025:23050 |
| Red Hat Enterprise Linux 10 | tomcat-docs-webapp | Fixed | 1:10.1.36-3.el10_1.1 | RHSA-2025:23050 |
| Red Hat Enterprise Linux 10 | tomcat-el-5.0-api | Fixed | 1:10.1.36-3.el10_1.1 | RHSA-2025:23050 |
| Red Hat Enterprise Linux 10 | tomcat-jsp-3.1-api | Fixed | 1:10.1.36-3.el10_1.1 | RHSA-2025:23050 |
| Red Hat Enterprise Linux 10 | tomcat-lib | Fixed | 1:10.1.36-3.el10_1.1 | RHSA-2025:23050 |
| Red Hat Enterprise Linux 10 | tomcat-servlet-6.0-api | Fixed | 1:10.1.36-3.el10_1.1 | RHSA-2025:23050 |
| Red Hat Enterprise Linux 10 | tomcat-webapps | Fixed | 1:10.1.36-3.el10_1.1 | RHSA-2025:23050 |
| Red Hat Enterprise Linux 10 | tomcat9 | Fixed | 1:9.0.87-8.el10_1.1 | RHSA-2025:23052 |
| Red Hat Enterprise Linux 10 | tomcat9-admin-webapps | Fixed | 1:9.0.87-8.el10_1.1 | RHSA-2025:23052 |
| Red Hat Enterprise Linux 10 | tomcat9-docs-webapp | Fixed | 1:9.0.87-8.el10_1.1 | RHSA-2025:23052 |
| Red Hat Enterprise Linux 10 | tomcat9-el-3.0-api | Fixed | 1:9.0.87-8.el10_1.1 | RHSA-2025:23052 |
| Red Hat Enterprise Linux 10 | tomcat9-jsp-2.3-api | Fixed | 1:9.0.87-8.el10_1.1 | RHSA-2025:23052 |
| Red Hat Enterprise Linux 10 | tomcat9-lib | Fixed | 1:9.0.87-8.el10_1.1 | RHSA-2025:23052 |
| Red Hat Enterprise Linux 10 | tomcat9-servlet-4.0-api | Fixed | 1:9.0.87-8.el10_1.1 | RHSA-2025:23052 |
| Red Hat Enterprise Linux 10 | tomcat9-webapps | Fixed | 1:9.0.87-8.el10_1.1 | RHSA-2025:23052 |
| Red Hat Enterprise Linux 9 | pki-servlet-4.0-api | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | pki-servlet-engine | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | tomcat | Fixed | 1:9.0.87-6.el9_7.1 | RHSA-2025:23049 |
| Red Hat Enterprise Linux 9 | tomcat-admin-webapps | Fixed | 1:9.0.87-6.el9_7.1 | RHSA-2025:23049 |
| Red Hat Enterprise Linux 9 | tomcat-docs-webapp | Fixed | 1:9.0.87-6.el9_7.1 | RHSA-2025:23049 |
| Red Hat Enterprise Linux 9 | tomcat-el-3.0-api | Fixed | 1:9.0.87-6.el9_7.1 | RHSA-2025:23049 |
| Red Hat Enterprise Linux 9 | tomcat-jsp-2.3-api | Fixed | 1:9.0.87-6.el9_7.1 | RHSA-2025:23049 |
| Red Hat Enterprise Linux 9 | tomcat-lib | Fixed | 1:9.0.87-6.el9_7.1 | RHSA-2025:23049 |
| Red Hat Enterprise Linux 9 | tomcat-servlet-4.0-api | Fixed | 1:9.0.87-6.el9_7.1 | RHSA-2025:23049 |
| Red Hat Enterprise Linux 9 | tomcat-webapps | Fixed | 1:9.0.87-6.el9_7.1 | RHSA-2025:23049 |
| 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 8 | tomcat | Fixed | 1:9.0.87-1.el8_10.7 | RHSA-2025:23048 |
| Red Hat Enterprise Linux 8 | tomcat-admin-webapps | Fixed | 1:9.0.87-1.el8_10.7 | RHSA-2025:23048 |
| Red Hat Enterprise Linux 8 | tomcat-docs-webapp | Fixed | 1:9.0.87-1.el8_10.7 | RHSA-2025:23048 |
| Red Hat Enterprise Linux 8 | tomcat-el-3.0-api | Fixed | 1:9.0.87-1.el8_10.7 | RHSA-2025:23048 |
| Red Hat Enterprise Linux 8 | tomcat-jsp-2.3-api | Fixed | 1:9.0.87-1.el8_10.7 | RHSA-2025:23048 |
| Red Hat Enterprise Linux 8 | tomcat-lib | Fixed | 1:9.0.87-1.el8_10.7 | RHSA-2025:23048 |
| Red Hat Enterprise Linux 8 | tomcat-servlet-4.0-api | Fixed | 1:9.0.87-1.el8_10.7 | RHSA-2025:23048 |
| Red Hat Enterprise Linux 8 | tomcat-webapps | Fixed | 1:9.0.87-1.el8_10.7 | RHSA-2025:23048 |
| Red Hat Enterprise Linux 7 | tomcat | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-admin-webapps | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-docs-webapp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-el-2.2-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-javadoc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-jsp-2.2-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-jsvc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-lib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-servlet-3.0-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-webapps | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-admin-webapps | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-docs-webapp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-el-2.1-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-javadoc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-jsp-2.1-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-lib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-log4j | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-servlet-2.5-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-webapps | Will not fix Out of support scope | ||
| AlmaLinux 10 | tomcat | Fixed | 1:10.1.36-3.el10_1.1 | ALSA-2025:23050 |
| AlmaLinux 10 | tomcat-admin-webapps | Fixed | 1:10.1.36-3.el10_1.1 | ALSA-2025:23050 |
| AlmaLinux 10 | tomcat-docs-webapp | Fixed | 1:10.1.36-3.el10_1.1 | ALSA-2025:23050 |
| AlmaLinux 10 | tomcat-el-5.0-api | Fixed | 1:10.1.36-3.el10_1.1 | ALSA-2025:23050 |
| AlmaLinux 10 | tomcat-jsp-3.1-api | Fixed | 1:10.1.36-3.el10_1.1 | ALSA-2025:23050 |
| AlmaLinux 10 | tomcat-lib | Fixed | 1:10.1.36-3.el10_1.1 | ALSA-2025:23050 |
| AlmaLinux 10 | tomcat-servlet-6.0-api | Fixed | 1:10.1.36-3.el10_1.1 | ALSA-2025:23050 |
| AlmaLinux 10 | tomcat-webapps | Fixed | 1:10.1.36-3.el10_1.1 | ALSA-2025:23050 |
| AlmaLinux 10 | tomcat9 | Fixed | 1:9.0.87-8.el10_1.1 | ALSA-2025:23052 |
| AlmaLinux 10 | tomcat9-admin-webapps | Fixed | 1:9.0.87-8.el10_1.1 | ALSA-2025:23052 |
| AlmaLinux 10 | tomcat9-docs-webapp | Fixed | 1:9.0.87-8.el10_1.1 | ALSA-2025:23052 |
| AlmaLinux 10 | tomcat9-el-3.0-api | Fixed | 1:9.0.87-8.el10_1.1 | ALSA-2025:23052 |
| AlmaLinux 10 | tomcat9-jsp-2.3-api | Fixed | 1:9.0.87-8.el10_1.1 | ALSA-2025:23052 |
| AlmaLinux 10 | tomcat9-lib | Fixed | 1:9.0.87-8.el10_1.1 | ALSA-2025:23052 |
| AlmaLinux 10 | tomcat9-servlet-4.0-api | Fixed | 1:9.0.87-8.el10_1.1 | ALSA-2025:23052 |
| AlmaLinux 10 | tomcat9-webapps | Fixed | 1:9.0.87-8.el10_1.1 | ALSA-2025:23052 |
| AlmaLinux 9 | tomcat | Fixed | 1:9.0.87-6.el9_7.1 | ALSA-2025:23049 |
| AlmaLinux 9 | tomcat-admin-webapps | Fixed | 1:9.0.87-6.el9_7.1 | ALSA-2025:23049 |
| AlmaLinux 9 | tomcat-docs-webapp | Fixed | 1:9.0.87-6.el9_7.1 | ALSA-2025:23049 |
| AlmaLinux 9 | tomcat-el-3.0-api | Fixed | 1:9.0.87-6.el9_7.1 | ALSA-2025:23049 |
| AlmaLinux 9 | tomcat-jsp-2.3-api | Fixed | 1:9.0.87-6.el9_7.1 | ALSA-2025:23049 |
| AlmaLinux 9 | tomcat-lib | Fixed | 1:9.0.87-6.el9_7.1 | ALSA-2025:23049 |
| AlmaLinux 9 | tomcat-servlet-4.0-api | Fixed | 1:9.0.87-6.el9_7.1 | ALSA-2025:23049 |
| AlmaLinux 9 | tomcat-webapps | Fixed | 1:9.0.87-6.el9_7.1 | ALSA-2025:23049 |
| AlmaLinux 8 | tomcat | Fixed | 1:9.0.87-1.el8_10.7 | ALSA-2025:23048 |
| AlmaLinux 8 | tomcat-admin-webapps | Fixed | 1:9.0.87-1.el8_10.7 | ALSA-2025:23048 |
| AlmaLinux 8 | tomcat-docs-webapp | Fixed | 1:9.0.87-1.el8_10.7 | ALSA-2025:23048 |
| AlmaLinux 8 | tomcat-el-3.0-api | Fixed | 1:9.0.87-1.el8_10.7 | ALSA-2025:23048 |
| AlmaLinux 8 | tomcat-jsp-2.3-api | Fixed | 1:9.0.87-1.el8_10.7 | ALSA-2025:23048 |
| AlmaLinux 8 | tomcat-lib | Fixed | 1:9.0.87-1.el8_10.7 | ALSA-2025:23048 |
| AlmaLinux 8 | tomcat-servlet-4.0-api | Fixed | 1:9.0.87-1.el8_10.7 | ALSA-2025:23048 |
| AlmaLinux 8 | tomcat-webapps | Fixed | 1:9.0.87-1.el8_10.7 | ALSA-2025:23048 |
| Rocky Linux 10 | tomcat | Fixed | 1:10.1.36-3.el10_1.1 | RLSA-2025:23050 |
| Rocky Linux 10 | tomcat9 | Fixed | 1:9.0.87-8.el10_1.1 | RLSA-2025:23052 |
| Rocky Linux 9 | tomcat | Fixed | 1:9.0.87-6.el9_7.1 | RLSA-2025:23049 |
| Rocky Linux 8 | tomcat | Fixed | 1:9.0.87-1.el8_10.7 | RLSA-2025:23048 |
| Maven library | org.apache.tomcat.embed:tomcat-embed-core | Fixed | 9.0.104 | GHSA-ff77-26x5-69cr |
| Maven library | org.apache.tomcat:tomcat-catalina | Fixed | 9.0.104 | GHSA-ff77-26x5-69cr |
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: 11.0.0-M1 to 11.0.5, 10.1.0-M1 to 10.1.39, 9.0.0.M1 to 9.0.102, 8.5.0 to 8.5.100
Vendor advisories:
- https://lists.apache.org/list.html?announce@tomcat.apache.org (vendor-advisory)
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.