CVE-2025-31651
JSON

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 packageVersionsReported by
Apache Software Foundation Apache Tomcatfrom 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.27CVE 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.100GitHub 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.100GitHub Advisory Database
apache tomcatfrom 9.0.0 before 9.0.104, from 10.1.0 before 10.1.40, from 11.0.0 before 11.0.6NVD
tomcat (Bitnami)before 9.0.104, from 10.0.0 before 10.1.40, from 11.0.0 before 11.0.6Bitnami Vulnerability Database

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHublow CVSS:4.0CVSS: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
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasecritical rating

Classification

CWE-116CWE-150

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

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

https://lists.apache.org/list.html?announce@tomcat.apache.orgadvisory, mailing-list, vendor-advisory, web
http://www.openwall.com/lists/oss-security/2025/04/28/3advisory, mailing-list, third-party-advisory, web
https://lists.debian.org/debian-lts-announce/2025/07/msg00009.htmlweb
https://nvd.nist.gov/vuln/detail/CVE-2025-31651advisory, web
https://github.com/apache/tomcat/commit/066bf6b6a15a4e7e0941d4acf096841165b97098web
https://github.com/apache/tomcat/commit/175dc75fc428930034a6c93fb52f830d955d8e64web
https://github.com/apache/tomcat/commit/ee3ab548e92345eca0cbd1f01649eb36c6f29454web
https://github.com/apache/tomcat/commit/fbecc915a10c5a3d634c5e2c6ced4ff479ce9953web
https://github.com/apache/tomcatpackage
https://tomcat.apache.org/security-10.htmlweb
https://tomcat.apache.org/security-11.htmlweb
https://tomcat.apache.org/security-9.htmlweb

Sources

SourceRecordLicence
CVE ListCVE-2025-31651 changed 2026-02-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-ff77-26x5-69cr changed 2026-09-10CC-BY-4.0
NVDCVE-2025-31651 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-TOMCAT-2025-31651 changed 2026-09-08Apache-2.0