9.8critical
Apache Tomcat: Bypass of rules in Rewrite Valve
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 4.35% (higher than 91% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-ff77-26x5-69crBIT-TOMCAT-2025-31651
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Tomcat | from 11.0.0-M1 up to 11.0.5, from 10.1.0-M1 up to 10.1.39, from 9.0.0.M1 up to 9.0.102, from 8.5.0 up to 8.5.100, from 8.0.0.RC1 before 8.5.0, from 10.0.0-M1 up to 10.0.27 | CVE List |
| org.apache.tomcat:tomcat-catalina (Maven) | from 9.0.76 before 9.0.104, from 10.1.10 before 10.1.40, from 11.0.0-M2 before 11.0.6, from 8.5.0 up to 8.5.100 | GitHub Advisory Database |
| org.apache.tomcat.embed:tomcat-embed-core (Maven) | from 9.0.76 before 9.0.104, from 10.1.10 before 10.1.40, from 11.0.0-M2 before 11.0.6, from 8.5.0 up to 8.5.100 | GitHub Advisory Database |
| apache tomcat | from 9.0.0 before 9.0.104, from 10.1.0 before 10.1.40, from 11.0.0 before 11.0.6 | NVD |
| tomcat (Bitnami) | before 9.0.104, from 10.0.0 before 10.1.40, from 11.0.0 before 11.0.6 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | low CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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 9.0.104, 10.1.40 or 11.0.6, which fix the issue.
NVD (es)
Vulnerabilidad de neutralización incorrecta de secuencias de escape, metadatos o de control en Apache Tomcat. En un subconjunto de configuraciones improbables de reglas de reescritura, una solicitud especialmente manipulada podía eludir algunas reglas de reescritura. Si dichas reglas aplicaban restricciones de seguridad de forma eficaz, estas podían eludirse. Este problema afecta a Apache Tomcat: de la 11.0.0-M1 a la 11.0.5, de la 10.1.0-M1 a la 10.1.39 y de la 9.0.0.M1 a la 9.0.102. Se recomienda a los usuarios actualizar a la versión [FIXED_VERSION], que soluciona el problema.
Bitnami Vulnerability Database
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 through 11.0.5, from 10.1.0 through 10.1.39, from 9.0.0 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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-31651 changed 2026-02-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-ff77-26x5-69cr changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-31651 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-TOMCAT-2025-31651 changed 2026-09-08 | Apache-2.0 |