Apache Software Foundation Apache Tomcat
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.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 11.0.0-M1, <= 11.0.5
- >= 10.1.0-M1, <= 10.1.39
- >= 9.0.0.M1, <= 9.0.102
- >= 8.5.0, <= 8.5.100
- >= 9.0.76, < 9.0.104
Fixed in 9.0.104
from GitHub Security Advisory GHSA-ff77-26x5-69cr
- >= 10.1.10, < 10.1.40
Fixed in 10.1.40
from GitHub Security Advisory GHSA-ff77-26x5-69cr
- >= 11.0.0-M2, < 11.0.6
Fixed in 11.0.6
from GitHub Security Advisory GHSA-ff77-26x5-69cr
- >= 9.0.76, < 9.0.104
Fixed in 9.0.104
from GitHub Security Advisory GHSA-ff77-26x5-69cr
- >= 10.1.10, < 10.1.40
Fixed in 10.1.40
from GitHub Security Advisory GHSA-ff77-26x5-69cr
- >= 11.0.0-M2, < 11.0.6
Fixed in 11.0.6
from GitHub Security Advisory GHSA-ff77-26x5-69cr
- >= 8.5.0, <= 8.5.100
from GitHub Security Advisory GHSA-ff77-26x5-69cr
- >= 8.5.0, <= 8.5.100
from GitHub Security Advisory GHSA-ff77-26x5-69cr
Mitigation
Upgrade org.apache.tomcat:tomcat-catalina to 9.0.104 or later.
Upgrade org.apache.tomcat:tomcat-catalina to 10.1.40 or later.
Upgrade org.apache.tomcat:tomcat-catalina to 11.0.6 or later.
Upgrade org.apache.tomcat.embed:tomcat-embed-core to 9.0.104 or later.
Upgrade org.apache.tomcat.embed:tomcat-embed-core to 10.1.40 or later.
Upgrade org.apache.tomcat.embed:tomcat-embed-core to 11.0.6 or later.
References
- Vendor advisory lists.apache.org/list.html?announce@tomcat.apache.or…
Timeline
Days relative to CVE publicationFirst public PoC 314 days after publication; not in CISA KEV. First PoC: gregk4sec/CVE-2025-31651 (created 9 Mar 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs · 1 informational
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| gregk4sec/CVE-2025-31651 | 9 Mar 2026 +314 d | 0 | PoC via PoC Index |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| gregk4sec/CVE-2025-31651-o | 8 Apr 2025 −21 d | 2 | Informational · write-up
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /sec/orders/housekeeper.jsp%3f
- Ports
- 8080
- Seen in
- 1 repo: gregk4sec/CVE-2025-31651
- Evidence
- gregk4sec/CVE-2025-31651/analysis.md:29
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/sec/orders/housekeeper\.jsp%3f(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2025-31651 Apache Software Foundation Apache Tomcat exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/sec/orders/housekeeper.jsp%3f"; reference:url,poc.griffinguard.io/cve/CVE-2025-31651; classtype:web-application-attack; sid:9608618; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache Tomcat exploit attempt (CVE-2025-31651)
id: gg-pocmon-cve-2025-31651-9608618
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-31651. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-31651
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/sec/orders/housekeeper.jsp%3f'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.31651