Home / Apache Software Foundation / Apache Tomcat / CVE-2025-31651
CVE-2025-31651: is it exploited, and which versions of Apache Software Foundation Apache Tomcat are affected and fixed?
CVE-2025-31651 is an improper output encoding vulnerability in Apache Software Foundation Apache Tomcat. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 19:09 UTC). Affected: org.apache.tomcat:tomcat-catalina from 9.0.76 before 9.0.104, org.apache.tomcat:tomcat-catalina from 10.1.10 before 10.1.40, org.apache.tomcat:tomcat-catalina from 11.0.0-M2 before 11.0.6 and 5 more (GitHub advisory GHSA-ff77-26x5-69cr). Fixed in 9.0.104, 10.1.40 and 11.0.6 (GitHub advisory GHSA-ff77-26x5-69cr). Severity: Critical (9.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 19:09 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:20 UTC.
What is CVE-2025-31651?
Apache 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.
From the CVE record by apache, last updated February 26, 2026, 18:27 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | 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 from 8.5.0 through 8.5.100 |
As the CVE record by apache states it, last updated February 26, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.apache.tomcat:tomcat-catalina | >= 9.0.76, < 9.0.104 | 9.0.104 | GHSA-ff77-26x5-69cr |
| Maven | org.apache.tomcat:tomcat-catalina | >= 10.1.10, < 10.1.40 | 10.1.40 | GHSA-ff77-26x5-69cr |
| Maven | org.apache.tomcat:tomcat-catalina | >= 11.0.0-M2, < 11.0.6 | 11.0.6 | GHSA-ff77-26x5-69cr |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | >= 9.0.76, < 9.0.104 | 9.0.104 | GHSA-ff77-26x5-69cr |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | >= 10.1.10, < 10.1.40 | 10.1.40 | GHSA-ff77-26x5-69cr |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | >= 11.0.0-M2, < 11.0.6 | 11.0.6 | GHSA-ff77-26x5-69cr |
| Maven | org.apache.tomcat:tomcat-catalina | >= 8.5.0, <= 8.5.100 | none listed | GHSA-ff77-26x5-69cr |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | >= 8.5.0, <= 8.5.100 | none listed | GHSA-ff77-26x5-69cr |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 3, 2025. Summary: Apache Tomcat Rewrite rule bypass.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | tomcat | from 9.0.0 before 9.0.104 | application |
| apache | tomcat | from 10.1.0 before 10.1.40 | application |
| apache | tomcat | from 11.0.0 before 11.0.6 | application |
NVD analysis (status Modified), last modified June 17, 2026, 09:10 UTC.
How severe is CVE-2025-31651?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-31651 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, July 30, 2025)
- EPSS
- 4.35% probability of exploitation activity in the next 30 days, percentile 91.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-116 Improper Encoding or Escaping of Output
- CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
Where are the vendor advisories and references?
- https://lists.apache.org/[email protected] vendor-advisory
- http://www.openwall.com/lists/oss-security/2025/04/28/3
- https://lists.debian.org/debian-lts-announce/2025/07/msg00009.html
Who found and reported it?
- COSCO Shipping Lines DIC (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- March 31, 2025
- Published
- April 28, 2025, 19:17 UTC
- CVE record updated
- February 26, 2026, 18:27 UTC by apache
- NVD
- Modified, last modified June 17, 2026, 09:10 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:20 UTC; KEV December 3, 2026, 19:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache Tomcat?
- Apr 9, 2026CVE-2026-34486 Apache Software Foundation Apache Tomcat: sensitive data not encrypted exploited
- Mar 10, 2025CVE-2025-24813 Apache Software Foundation Apache Tomcat: path Equivalence: 'file.name' (Internal Dot) exploited
- Oct 3, 2017CVE-2017-12617 Apache Software Foundation Apache Tomcat: unrestricted file upload exploited
- Sep 19, 2017CVE-2017-12615 Apache Software Foundation Apache Tomcat: unrestricted file upload exploited
- Apr 6, 2017CVE-2016-8735 Apache Software Foundation Apache Tomcat: improper access control exploited
- Nov 19, 2026CVE-2026-121649 Apache Software Foundation Apache Tomcat: use of Cache Containing Sensitive Information
- Nov 19, 2026CVE-2026-133325 Apache Software Foundation Apache Tomcat: key Exchange without Entity Authentication
- Nov 19, 2026CVE-2026-118436 Apache Software Foundation Apache Tomcat: denial of service (resources allocated without limits)
Questions about CVE-2025-31651
Is CVE-2025-31651 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 19:09 UTC. FIRST's EPSS gives it a 4.35% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache Tomcat are affected by CVE-2025-31651?
org.apache.tomcat:tomcat-catalina from 9.0.76 before 9.0.104, org.apache.tomcat:tomcat-catalina from 10.1.10 before 10.1.40, org.apache.tomcat:tomcat-catalina from 11.0.0-M2 before 11.0.6, org.apache.tomcat.embed:tomcat-embed-core from 9.0.76 before 9.0.104, org.apache.tomcat.embed:tomcat-embed-core from 10.1.10 before 10.1.40, org.apache.tomcat.embed:tomcat-embed-core from 11.0.0-M2 before 11.0.6 and 2 more, per the GitHub advisory GHSA-ff77-26x5-69cr. The tables above give every range the sources list.
Which version fixes CVE-2025-31651?
9.0.104, 10.1.40 and 11.0.6, per the GitHub advisory GHSA-ff77-26x5-69cr. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-31651?
Critical (9.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2025-31651?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.