CVSS 3.1
9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCritical (9.8) in apache tomcat. EPSS 4.3% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tomcat:tomcat-catalina 10.1.40, 11.0.6, 9.0.104.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Horg.apache.tomcat:tomcat-catalina (Maven): fixed in 9.0.104, 10.1.40, 11.0.6org.apache.tomcat.embed:tomcat-embed-core (Maven): fixed in 9.0.104, 10.1.40, 11.0.6Explain CVE-2025-31651 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-31651?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-31651?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-31651 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Apache Software Foundation Apache Tomcat | from 11.0.0-M1 through 11.0.5 |
| Apache Software Foundation Apache Tomcat | from 10.1.0-M1 through 10.1.39 |
| Apache Software Foundation Apache Tomcat | from 9.0.0.M1 through 9.0.102 |
| Apache Software Foundation Apache Tomcat | from 8.5.0 through 8.5.100 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-ff77-26x5-69cr | 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 | no fix published |
| GHSA-ff77-26x5-69cr | Maven | org.apache.tomcat.embed:tomcat-embed-core | >=8.5.0 <=8.5.100 | no fix published |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | tomcat9 | 9.0.107-0+deb11u1 | DLA-4244-1 |
| Debian | 12, 13, 14 | tomcat10 | 10.1.40-1 | DEBIAN-CVE-2025-31651 |
| Debian | 12, 13, 14 | tomcat9 | 9.0.70-2 | DEBIAN-CVE-2025-31651 |
| Debian | 13, 14 | tomcat11 | 11.0.6-1 | DEBIAN-CVE-2025-31651 |
| Ubuntu | Pro:16.04:LTS | tomcat8 | no fix listed | UBUNTU-CVE-2025-31651 |
| Ubuntu | Pro:18.04:LTS | tomcat8, tomcat9 | no fix listed | UBUNTU-CVE-2025-31651 |
| Ubuntu | Pro:20.04:LTS, Pro:22.04:LTS | tomcat9 | no fix listed | UBUNTU-CVE-2025-31651 |
| Ubuntu | Pro:24.04:LTS | tomcat10 | 10.1.16-1ubuntu0.1~esm3 | UBUNTU-CVE-2025-31651 USN-7705-1 |
| Red Hat | enterprise_linux:8::appstream | tomcat, tomcat-lib, tomcat-webapps and 5 more | 1:9.0.87-1.el8_10.7 | RHSA-2025:23048 |
| Red Hat | enterprise_linux:9::appstream | tomcat, tomcat-lib, tomcat-webapps and 5 more | 1:9.0.87-6.el9_7.1 | RHSA-2025:23049 |
| Red Hat | enterprise_linux:10.1 | tomcat, tomcat-lib, tomcat-webapps and 5 more | 1:10.1.36-3.el10_1.1 | RHSA-2025:23050 |
| Red Hat | enterprise_linux:10.1 | tomcat9, tomcat9-lib, tomcat9-webapps and 5 more | 1:9.0.87-8.el10_1.1 | RHSA-2025:23052 |
| Red Hat | enterprise_linux_eus:10.0 | tomcat, tomcat-lib, tomcat-webapps and 5 more | 1:10.1.36-1.el10_0.3 | RHSA-2025:23051 |
| Red Hat | enterprise_linux_eus:10.0 | tomcat9, tomcat9-lib, tomcat9-webapps and 5 more | 1:9.0.87-5.el10_0.4 | RHSA-2025:23053 |
| Red Hat | jboss_enterprise_web_server:5.8::el7 | jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 9 more | 0:9.0.87-14.redhat_00013.1.el7jws | RHSA-2025:22925 |
| Red Hat | jboss_enterprise_web_server:5.8::el8 | jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 7 more | 0:9.0.87-14.redhat_00013.1.el8jws | RHSA-2025:22925 |
| Red Hat | jboss_enterprise_web_server:5.8::el9 | jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 7 more | 0:9.0.87-14.redhat_00013.1.el9jws | RHSA-2025:22925 |
| Red Hat | jboss_enterprise_web_server:6.1::el8 | jws6-tomcat, jws6-tomcat-lib, jws6-tomcat-javadoc and 7 more | 0:10.1.36-19.redhat_00018.1.el8jws | RHSA-2025:19809 |
| Red Hat | jboss_enterprise_web_server:6.1::el9 | jws6-tomcat, jws6-tomcat-lib, jws6-tomcat-javadoc and 7 more | 0:10.1.36-19.redhat_00018.1.el9jws | RHSA-2025:19809 |
| Red Hat | jboss_enterprise_web_server:6.1::el10 | jws6-tomcat, jws6-tomcat-lib, jws6-tomcat-javadoc and 7 more | 0:10.1.36-19.redhat_00018.1.el10jws | RHSA-2025:19809 |
| 82 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 more | tomcat | 9.0.104-150200.81.1 | SUSE-SU-2025:1521-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Module for Web and Scripting 15 SP6 and 2 more | tomcat10 | 10.1.40-150200.5.40.1 | SUSE-SU-2025:1537-1 |
| SUSE | Linux Enterprise Module for Web and Scripting 15 SP7 | tomcat | 9.0.104-150200.81.1 | SUSE-SU-2025:01521-1 |
| SUSE | Linux Enterprise Module for Web and Scripting 15 SP7 | tomcat10 | 10.1.40-150200.5.40.1 | SUSE-SU-2025:01537-1 |
| SUSE | Linux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5 | tomcat | 9.0.115-3.160.1 | SUSE-SU-2026:1058-1 |
| SUSE | Linux Enterprise Server LTSS Extended Security 12 SP5 | tomcat | 9.0.36-3.142.1 | SUSE-SU-2025:01882-1 |
| openSUSE | Leap 15.6 | tomcat | 9.0.104-150200.81.1 | SUSE-SU-2025:1521-1 |
| openSUSE | Leap 15.6 | tomcat10 | 10.1.40-150200.5.40.1 | SUSE-SU-2025:1537-1 |
| openSUSE | Tumbleweed | tomcat | 9.0.104-1.1 | openSUSE-SU-2025:15048-1 |
| openSUSE | Tumbleweed | tomcat10 | 10.1.40-1.1 | openSUSE-SU-2025:15049-1 |
| AlmaLinux | 8 | tomcat, tomcat-lib, tomcat-webapps and 5 more | 1:9.0.87-1.el8_10.7 | ALSA-2025:23048 |
| AlmaLinux | 9 | tomcat, tomcat-lib, tomcat-webapps and 5 more | 1:9.0.87-6.el9_7.1 | ALSA-2025:23049 |
| AlmaLinux | 10 | tomcat, tomcat-lib, tomcat-webapps and 5 more | 1:10.1.36-3.el10_1.1 | ALSA-2025:23050 |
| AlmaLinux | 10 | tomcat9, tomcat9-lib, tomcat9-webapps and 5 more | 1:9.0.87-8.el10_1.1 | ALSA-2025:23052 |
| Rocky Linux | 8 | tomcat | 1:9.0.87-1.el8_10.7 | RLSA-2025:23048 |
| Rocky Linux | 9 | tomcat | 1:9.0.87-6.el9_7.1 | RLSA-2025:23049 |
| Rocky Linux | 10 | tomcat | 1:10.1.36-3.el10_1.1 | RLSA-2025:23050 |
| Rocky Linux | 10 | tomcat9 | 1:9.0.87-8.el10_1.1 | RLSA-2025:23052 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.
Red Hat rates this Low.
This vulnerability is rated as Low severity because it only manifests under a narrow set of conditions involving uncommon and non-default rewrite rule configurations that rely on specific patterns in the raw requestURI, including path parameters. In most deployments, rewrite rules operate on decoded and normalized URIs or are used for non-security-critical purposes like routing. Furthermore, Tomcat’s internal processing already normalizes and removes path parameters (;-delimited) before applying security constraints, meaning any bypass would only be feasible if the rewrite logic directly enforced security (which is a poor practice). The flaw does not allow direct code execution, data leakage, or privilege escalation unless the rewrite rule was explicitly misused as a substitute for proper access control.
Its impact is further mitigated by the fact that rewrite rules are not typically relied upon for access enforcement. As such, while the bug may lead to incorrect rule evaluation under certain edge-case configurations, it does not represent a significant security risk in practice.
No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | tomcat-1:10.1.36-3.el10_1.1 | Fixed 2025-12-10 | RHSA-2025:23050 |
| Red Hat Enterprise Linux 10 | tomcat9-1:9.0.87-8.el10_1.1 | Fixed 2025-12-10 | RHSA-2025:23052 |
| Red Hat Enterprise Linux 10.0 Extended Update Support | tomcat-1:10.1.36-1.el10_0.3 | Fixed 2025-12-10 | RHSA-2025:23051 |
| Red Hat Enterprise Linux 10.0 Extended Update Support | tomcat9-1:9.0.87-5.el10_0.4 | Fixed 2025-12-10 | RHSA-2025:23053 |
| Red Hat Enterprise Linux 8 | tomcat-1:9.0.87-1.el8_10.7 | Fixed 2025-12-10 | RHSA-2025:23048 |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | pki-deps:10.6-8020020260128173505.4cda2c84 | Fixed 2026-02-16 | RHSA-2026:2725 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | pki-deps:10.6-8040020260129154709.522a0ee4 | Fixed 2026-02-16 | RHSA-2026:2724 |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | pki-deps:10.6-8040020260129154709.522a0ee4 | Fixed 2026-02-16 | RHSA-2026:2724 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | pki-deps:10.6-8060020260128101437.ad008a3a | Fixed 2026-02-16 | RHSA-2026:2726 |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | pki-deps:10.6-8060020260128101437.ad008a3a | Fixed 2026-02-16 | RHSA-2026:2726 |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | pki-deps:10.6-8060020260128101437.ad008a3a | Fixed 2026-02-16 | RHSA-2026:2726 |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | tomcat-1:9.0.87-1.el8_8.8 | Fixed 2025-12-10 | RHSA-2025:23045 |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | tomcat-1:9.0.87-1.el8_8.8 | Fixed 2025-12-10 | RHSA-2025:23045 |
| Red Hat Enterprise Linux 9 | tomcat-1:9.0.87-6.el9_7.1 | Fixed 2025-12-10 | RHSA-2025:23049 |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | pki-servlet-engine-1:9.0.43-4.el9_0.2 | Fixed 2026-01-08 | RHSA-2026:0292 |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | tomcat-1:9.0.87-1.el9_2.7 | Fixed 2025-12-10 | RHSA-2025:23046 |
| Red Hat Enterprise Linux 6 | tomcat6 | Out of support scope | |
| Red Hat Enterprise Linux 7 | tomcat | Out of support scope | |
| Red Hat Enterprise Linux 8 | pki-deps:10.6/pki-servlet-engine | Fix deferred | |
| Red Hat Enterprise Linux 9 | pki-servlet-engine | Affected | |
| 11 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-31651.
Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.