Apache Software Foundation Apache Tomcat
Apache Tomcat: Security constraint bypass for CGI scripts
Improper Handling of Case Sensitivity vulnerability in Apache Tomcat's GCI servlet allows security constraint bypass of security constraints that apply to the pathInfo component of a URI mapped to the CGI servlet. This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.6, from 10.1.0-M1 through 10.1.40, from 9.0.0.M1 through 9.0.104. 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 11.0.7, 10.1.41 or 9.0.105, 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.6
- >= 10.1.0-M1, <= 10.1.40
- >= 9.0.0.M1, <= 9.0.104
- >= 8.5.0, <= 8.5.100
- >= 9.0.0.M1, < 9.0.105
Fixed in 9.0.105
from GitHub Security Advisory GHSA-h2fw-rfh5-95r3
- >= 10.1.0-M1, < 10.1.41
Fixed in 10.1.41
from GitHub Security Advisory GHSA-h2fw-rfh5-95r3
- >= 11.0.0-M1, < 11.0.7
Fixed in 11.0.7
from GitHub Security Advisory GHSA-h2fw-rfh5-95r3
- >= 9.0.0.M1, < 9.0.105
Fixed in 9.0.105
from GitHub Security Advisory GHSA-h2fw-rfh5-95r3
- >= 10.1.0-M1, < 10.1.41
Fixed in 10.1.41
from GitHub Security Advisory GHSA-h2fw-rfh5-95r3
- >= 11.0.0-M1, < 11.0.7
Fixed in 11.0.7
from GitHub Security Advisory GHSA-h2fw-rfh5-95r3
- >= 8.5.0, <= 8.5.100
from GitHub Security Advisory GHSA-h2fw-rfh5-95r3
- >= 8.5.0, <= 8.5.100
from GitHub Security Advisory GHSA-h2fw-rfh5-95r3
Mitigation
Upgrade org.apache.tomcat:tomcat-catalina to 9.0.105 or later.
Upgrade org.apache.tomcat:tomcat-catalina to 10.1.41 or later.
Upgrade org.apache.tomcat:tomcat-catalina to 11.0.7 or later.
Upgrade org.apache.tomcat.embed:tomcat-embed-core to 9.0.105 or later.
Upgrade org.apache.tomcat.embed:tomcat-embed-core to 10.1.41 or later.
Upgrade org.apache.tomcat.embed:tomcat-embed-core to 11.0.7 or later.
References
- Vendor advisory lists.apache.org/thread/xhqqk9w5q45srcdqhogdk04lhdsc…
Timeline
Days relative to CVE publicationFirst public PoC 31 days before publication; not in CISA KEV. First PoC: gregk4sec/CVE-2025-46701 (created 29 Apr 2025, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| gregk4sec/CVE-2025-46701 | 29 Apr 2025 −31 d | 2 | PoC via PoC Index |
| gregk4sec/CVE-2025-46701-o | 29 Apr 2025 −31 d | 2 | PoC via PoC Index |
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 2 PoC reposGET /cgi-bin/rce.pl
PUT /cgi-bin/RCE.PL
- Body markers
print "{var}{var} 200 OK\n\Content-Type: text/plain\n\n\!\!\!Hacked\!\!\!\n";=inapplication/x-www-form-urlencoded- Seen in
- 2 repos: gregk4sec/CVE-2025-46701, gregk4sec/CVE-2025-46701-o
- Evidence
- gregk4sec/CVE-2025-46701/CVE-2025-46701-PoC.md:43 gregk4sec/CVE-2025-46701-o/CVE-2025-46701-PoC.md:43
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/cgi-bin/rce\.pl(?:[?#].*)?$
(?i)^/cgi-bin/RCE\.PL(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-46701 Apache Software Foundation Apache Tomcat exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/rce.pl"; reference:url,poc.griffinguard.io/cve/CVE-2025-46701; classtype:web-application-attack; sid:9694191; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-46701 Apache Software Foundation Apache Tomcat exploit attempt"; flow:established,to_server; http.method; content:"PUT"; http.uri; content:"/cgi-bin/RCE.PL"; http.request_body; content:"print |22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-46701; classtype:web-application-attack; sid:9448574; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache Tomcat exploit attempt (CVE-2025-46701)
id: gg-pocmon-cve-2025-46701-9694191
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-46701. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-46701
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cgi-bin/rce.pl'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.46701
title: Apache Software Foundation Apache Tomcat exploit attempt (CVE-2025-46701)
id: gg-pocmon-cve-2025-46701-9448574
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-46701. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-46701
logsource:
category: webserver
detection:
selection:
cs-method: PUT
cs-uri-stem|contains|all:
- '/cgi-bin/RCE.PL'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.46701