# CVE-2025-31651: Apache Tomcat: Bypass of rules in Rewrite Valve

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.35%, higher than 91% of CVEs (2026-12-01)
- Published: 2025-04-28T19:17:21.721Z
- Modified: 2026-09-10T03:50:24.113Z
- Also known as: GHSA-ff77-26x5-69cr, BIT-TOMCAT-2025-31651
- Weaknesses: CWE-116, CWE-150
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- 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
- 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
- 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
- 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
- tomcat (Bitnami): before 9.0.104; from 10.0.0 before 10.1.40; from 11.0.0 before 11.0.6

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Low `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: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://lists.apache.org/list.html?announce@tomcat.apache.org> (advisory, mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2025/04/28/3> (advisory, mailing-list, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2025/07/msg00009.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-31651> (advisory, web)
- <https://github.com/apache/tomcat/commit/066bf6b6a15a4e7e0941d4acf096841165b97098> (web)
- <https://github.com/apache/tomcat/commit/175dc75fc428930034a6c93fb52f830d955d8e64> (web)
- <https://github.com/apache/tomcat/commit/ee3ab548e92345eca0cbd1f01649eb36c6f29454> (web)
- <https://github.com/apache/tomcat/commit/fbecc915a10c5a3d634c5e2c6ced4ff479ce9953> (web)
- <https://github.com/apache/tomcat> (package)
- <https://tomcat.apache.org/security-10.html> (web)
- <https://tomcat.apache.org/security-11.html> (web)
- <https://tomcat.apache.org/security-9.html> (web)

## Sources

- CVE List: [CVE-2025-31651](https://www.cve.org/CVERecord?id=CVE-2025-31651), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-ff77-26x5-69cr](https://github.com/advisories/GHSA-ff77-26x5-69cr), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-31651](https://nvd.nist.gov/vuln/detail/CVE-2025-31651), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-TOMCAT-2025-31651](https://osv.dev/vulnerability/BIT-TOMCAT-2025-31651), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-31651 · Whole record: https://cve.day/CVE-2025-31651.json · Rebuilt by cve.day 2026-11-25T22:58:57.032Z
