CVE-2025-31651: Apache Tomcat · Bypass of rules in Rewrite Valve
Affects tomcatSource GCVE Database
Not known to be exploited : upgrade to 10.1.16-1ubuntu0.1~esm3 as a priority.
Data as of 26 Oct 2026, 07:57 UTC
Rated by Threat Radar · No CVSS score from NVD or the CNA
- EPSS
- 4.1% chance of exploitation in 30 days – higher than 90% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 10.1.16-1ubuntu0.1~esm3
Exploitation evidence
Disclosed: evidence found.
CVE published 10 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade tomcat10 to 10.1.16-1ubuntu0.1~esm3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu:Pro:16.04:LTStomcat8pkg:deb/ubuntu/tomcat8@8.0.32-1ubuntu1.13+esm2?arch=source&distro=esm-infra-legacy/xenialOther threats | Affected
| Fixed in– |
Ubuntu:Pro:18.04:LTStomcat8pkg:deb/ubuntu/tomcat8@8.5.39-1ubuntu1~18.04.3+esm6?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Ubuntu:Pro:18.04:LTStomcat9pkg:deb/ubuntu/tomcat9@9.0.16-3ubuntu0.18.04.2+esm8?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Ubuntu:Pro:20.04:LTStomcat9pkg:deb/ubuntu/tomcat9@9.0.31-1ubuntu0.9+esm3?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Ubuntu:Pro:22.04:LTStomcat9pkg:deb/ubuntu/tomcat9@9.0.58-1ubuntu0.2+esm4?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu:Pro:24.04:LTStomcat10pkg:deb/ubuntu/tomcat10@10.1.16-1ubuntu0.1~esm3?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available for this vulnerability. Users should upgrade Apache Tomcat to the fixed versions: for example, versions >=11.0.6, >=10.1.40, and >=9.0.104 or later. Ubuntu users can apply security updates via standard system updates or use Ubuntu Pro with Extended Security Maintenance (ESM) for long-term support releases. Applying these updates will remediate the vulnerability. No additional mitigation steps are indicated by the vendor advisory.
Description
Apache Tomcat contains a vulnerability in its Rewrite Valve that allows bypassing certain rewrite rules under specific, unlikely configurations. This flaw could enable attackers to circumvent security constraints enforced by these rules. The issue affects multiple Tomcat versions including 8.5.x, 9.0.x, 10.1.x, and 11.0.x series. A patch is available and users are advised to upgrade to fixed versions to mitigate the risk.
References
- ubuntu.com/security/CVE-2025-31651 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-31651 (opens in a new tab)
- openwall.com/lists/oss-security/2025/04/28/3 (opens in a new tab)
- lists.apache.org/list.html?announce@tomcat.apache.org (opens in a new tab)
- ubuntu.com/security/notices/USN-7705-1 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-31651 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/07/msg00009.html (opens in a new tab)