Skip to main content
← All vulnerabilities
CVE-2025-31651GHSA-FF77-26X5-69CRBIT-TOMCAT-2025-31651

Apache Tomcat: Bypass of rules in Rewrite Valve

Published
Last modified
published
Not listed in CISA KEV
Low (apache)
Fix
Fixed in 9.0.104, 10.1.40, 11.0.6
2 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • Apache Software Foundation 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; From 8.5.0 · through 8.5.100

  • org.apache.tomcat:tomcat-catalinaMaven

    From 9.0.76 · fixed in 9.0.104

  • org.apache.tomcat:tomcat-catalinaMaven

    From 10.1.10 · fixed in 10.1.40

  • org.apache.tomcat:tomcat-catalinaMaven

    From 11.0.0-M2 · fixed in 11.0.6

  • org.apache.tomcat.embed:tomcat-embed-coreMaven

    From 9.0.76 · fixed in 9.0.104

  • org.apache.tomcat.embed:tomcat-embed-coreMaven

    From 10.1.10 · fixed in 10.1.40

  • org.apache.tomcat.embed:tomcat-embed-coreMaven

    From 11.0.0-M2 · fixed in 11.0.6

  • org.apache.tomcat:tomcat-catalinaMaven

    From 8.5.0 · through 8.5.100

  • org.apache.tomcat.embed:tomcat-embed-coreMaven

    From 8.5.0 · through 8.5.100

References 3

lists.apache.org

GitHub · gregk4sec/CVE-2025-31651-o

GitHub · gregk4sec/cve-2025-31651