PoC Monitor
← All CVEs
CVE-2025-46701published 29 May 2025 19:06 UTCData: JSON · API

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.

First public PoC 31 days beforebefore publication · 29 Apr 2025
Public PoCs22 on GitHub
CVSS7.3high · scored by CISA ADP · CWE-178
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

Apache Software Foundation Apache Tomcat
  • >= 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
org.apache.tomcat:tomcat-catalina (Maven)
  • >= 9.0.0.M1, < 9.0.105

Fixed in 9.0.105

from GitHub Security Advisory GHSA-h2fw-rfh5-95r3

org.apache.tomcat:tomcat-catalina (Maven)
  • >= 10.1.0-M1, < 10.1.41

Fixed in 10.1.41

from GitHub Security Advisory GHSA-h2fw-rfh5-95r3

org.apache.tomcat:tomcat-catalina (Maven)
  • >= 11.0.0-M1, < 11.0.7

Fixed in 11.0.7

from GitHub Security Advisory GHSA-h2fw-rfh5-95r3

org.apache.tomcat.embed:tomcat-embed-core (Maven)
  • >= 9.0.0.M1, < 9.0.105

Fixed in 9.0.105

from GitHub Security Advisory GHSA-h2fw-rfh5-95r3

org.apache.tomcat.embed:tomcat-embed-core (Maven)
  • >= 10.1.0-M1, < 10.1.41

Fixed in 10.1.41

from GitHub Security Advisory GHSA-h2fw-rfh5-95r3

org.apache.tomcat.embed:tomcat-embed-core (Maven)
  • >= 11.0.0-M1, < 11.0.7

Fixed in 11.0.7

from GitHub Security Advisory GHSA-h2fw-rfh5-95r3

org.apache.tomcat:tomcat-catalina (Maven)
  • >= 8.5.0, <= 8.5.100

from GitHub Security Advisory GHSA-h2fw-rfh5-95r3

org.apache.tomcat.embed:tomcat-embed-core (Maven)
  • >= 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

Timeline

Days relative to CVE publication
-28-21-14-7t=0+7First public PoC29 Apr 2025 · t−31dCVE published29 May 2025 · t = 0

First 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
RepositoryCreatedStarsAssessment
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 repos

PUT /cgi-bin/RCE.PL

Body markers
print "{var}{var} 200 OK\n\Content-Type: text/plain\n\n\!\!\!Hacked\!\!\!\n";= in application/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.

GET /cgi-bin/rce.pl
(?i)^/cgi-bin/rce\.pl(?:[?#].*)?$
PUT /cgi-bin/RCE.PL
(?i)^/cgi-bin/RCE\.PL(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /cgi-bin/rce.pl
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;)
PUT /cgi-bin/RCE.PL
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.

GET /cgi-bin/rce.pl
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
PUT /cgi-bin/RCE.PL
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