CVE-2025-31651
A public proof of concept exists; no exploitation attested.
- Published2025-04-28
- Fixed in11.0.6 · 10.1.40 · 9.0.104
- WeaknessCWE-116
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2025-04-2820:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 11.0 | ≥ 11.0.0, < 11.0.6 | 11.0.6 | NVD · OSV |
| 11.0 | ≥ 11.0.0-M2, < 11.0.6 | 11.0.6 | OSV |
| 10.1 | ≥ 10.1.0, < 10.1.40 | 10.1.40 | NVD |
| 10.x | ≥ 10.0.0, < 10.1.40 | 10.1.40 | OSV |
| 10.1 | ≥ 10.1.10, < 10.1.40 | 10.1.40 | OSV |
| 9.0 | ≥ 9.0.0, < 9.0.104 | 9.0.104 | NVD |
| 9.0 | < 9.0.104 | 9.0.104 | OSV |
| 9.0 | ≥ 9.0.76, < 9.0.104 | 9.0.104 | OSV |
| 8.5 | ≥ 8.5.0, ≤ 8.5.100 | no fix published | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Apache Software Foundation Apache Tomcatother versions: not affectedAffected
- ≥ 11.0.0-M1, ≤ 11.0.5no fix statedsemver
- ≥ 10.1.0-M1, ≤ 10.1.39no fix statedsemver
- ≥ 9.0.0.M1, ≤ 9.0.102no fix statedsemver
- ≥ 8.5.0, ≤ 8.5.100no fix statedsemver
Not affected ≥ 8.0.0.RC1, < 8.5.0 (status unknown) · ≥ 10.0.0-M1, ≤ 10.0.27 (status unknown)
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-10-29
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- apache-commons-collectionsRed Hat:rhel_tus:8.6::appstreamall versions · fixed in 0:3.2.2-10.module+el8.1.0+3366+6dfb954c
- apache-commons-collectionsRed Hat:rhel_eus_long_life:8.4::appstreamall versions · fixed in 0:3.2.2-10.module+el8.1.0+3366+6dfb954c
- apache-commons-collectionsRed Hat:rhel_e4s:8.6::appstreamall versions · fixed in 0:3.2.2-10.module+el8.1.0+3366+6dfb954c
- apache-commons-collectionsRed Hat:rhel_aus:8.6::appstreamall versions · fixed in 0:3.2.2-10.module+el8.1.0+3366+6dfb954c
- apache-commons-collectionsRed Hat:rhel_aus:8.4::appstreamall versions · fixed in 0:3.2.2-10.module+el8.1.0+3366+6dfb954c
- apache-commons-collectionsRed Hat:rhel_aus:8.2::appstreamall versions · fixed in 0:3.2.2-10.module+el8.1.0+3366+6dfb954c
- apache-commons-langRed Hat:rhel_tus:8.6::appstreamall versions · fixed in 0:2.6-21.module+el8.1.0+3366+6dfb954c
- apache-commons-langRed Hat:rhel_eus_long_life:8.4::appstreamall versions · fixed in 0:2.6-21.module+el8.1.0+3366+6dfb954c
336 more package ranges on OSV.dev
Vendor advisories
tomcat: Apache Tomcat: Bypass of rules in Rewrite Valve
tomcat6 as a component of Red Hat Enterprise Linux 6 · tomcat6-admin-webapps as a component of Red Hat Enterprise Linux 6 · tomcat6-docs-webapp as a component of Red Hat Enterprise Linux 6 · +25 more
Red Hat Security Advisory: pki-deps:10.6 security update
Red Hat Security Advisory: pki-deps:10.6 security update
Red Hat Security Advisory: pki-deps:10.6 security update
Red Hat Security Advisory: pki-servlet-engine security update
Red Hat Security Advisory: pki-servlet-engine security update
14 more advisories
Fix
- Update Apache Tomcat to 11.0.6 · 10.1.40 · 9.0.104
- Vendor fix Red Hat Product Security RHSA-2026:2726 · 222 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2026:2725 · 68 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2025:22925 · 35 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2025:22924 · 1 productBefore applying the update, back up your existing Red Hat JBoss Web Server installation, including all applications and configuration files. The References section of this erratum contains a download link for the update. You must be logged in to download the update.
- Workaround from the vendor Red Hat Product Security RHSA-2026:2726 · 222 productsNo mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.
Advisories and patches
- lists.apache.orgVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub2 repositories, unverifiedknown since 2026-11-01gregk4sec/CVE-2025-31651-ogregk4sec/cve-2025-31651
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2025-07-30
- CISA-ADPCVSS 3.19.82025-05-06
- NVDCVSS 3.19.8read 2026-10-23
- CNAweakness (CWE)CWE-116known since 2026-10-23
- NVDweakness (CWE)CWE-116read 2026-10-23
- FIRST EPSSEPSS score4.3 %2026-11-09
- PoC-in-GitHubproof of concept2known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryLOW2025-04-29
Identifiers
- BIT-tomcat-2025-31651same flawBitnami · Apache-2.0
- CGA-4r46-9gxg-9524same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4w8v-4f4w-8466same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5vr8-2jx8-9pq3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-642v-h9xc-v26rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-82px-2787-7vqxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8v32-v73v-h9wvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-97fr-pvcv-f3wjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-98vm-jc27-wxxrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cc36-2399-qx63same flawChainguard · CC-BY-NC-ND-4.0
- CGA-g8p7-wv5r-7pgfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-m77p-r75q-85m3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-q85m-pjm9-xgjcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-r776-hhpr-m837same flawChainguard · CC-BY-NC-ND-4.0
- CGA-vfww-j62h-cgrfsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2025-13626same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-ff77-26x5-69crsame flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2025:23048advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:23049advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:23050advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:23052advisory covering several CVEsAlmaLinux · MIT
- DLA-4244-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2025-0145advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2025-1484advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2025:15048-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15049-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2025:19809advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:22925advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:23044advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:23045advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:23046advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:23047advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:23048advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:23049advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:23050advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:23051advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:23052advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:23053advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:0292advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:0293advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:2724advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:2725advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:2726advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2025:23048advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2025:23049advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2025:23050advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2025:23052advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2025:01521-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:01537-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:01882-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2025-04-28
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-ff77-26x5-69cr
Frequently asked questions
What is CVE-2025-31651?
Is CVE-2025-31651 actively exploited?
What is the CVSS score for CVE-2025-31651?
Running Apache Tomcat? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-ff77-26x5-69cr
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0