CVE-2025-31651
Apache Tomcat: Bypass of rules in Rewrite Valve
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 through 11.0.5, from 10.1.0 through 10.1.39, from 9.0.0 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.
How to fix CVE-2025-31651
To remediate CVE-2025-31651, upgrade the affected package to a fixed version below.
- —upgrade to 9.0.104 or later
- —upgrade to 10.1.40-1 or later
- —upgrade to 11.0.6-1 or later
- —upgrade to 9.0.107-0+deb11u1 or later
- —upgrade to 9.0.104 or later
- —upgrade to 9.0.104 or later
Is CVE-2025-31651 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (6)
- from 0, < 9.0.104, >= 10.0.0, < 10.1.40, >= 11.0.0, < 11.0.6
- from 0, < 10.1.40-1
- from 0, < 11.0.6-1
- from 0, < 9.0.107-0+deb11u1
- >= 9.0.76, < 9.0.104
- >= 9.0.76, < 9.0.104
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |