CVE-2026-118028

Authorization Bypass
Affects
Apache Tomcat
in
Apache Tomcat
No items found.
Versions
>=9.0.87 <=9.0.123, >=10.1.20 <=10.1.61, >=11.0.0-M18 <=11.0.27, 8.5.100

Patch Available.

Exclamation circle icon
Patch Available

This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.

Overview

Apache Tomcat is an open-source implementation of the Jakarta Servlet, Jakarta Pages, Jakarta Expression Language, Jakarta WebSocket, Jakarta Annotations, and Jakarta Authentication specifications. It serves Java web applications either as a standalone servlet container and HTTP server or embedded inside an application through the tomcat-embed-core artifact. Its Catalina servlet container (org.apache.tomcat:tomcat-catalina) supplies the request-processing pipeline, including Valves such as RewriteValve, along with connectors, realms, and session management.

An authorization bypass vulnerability (CVE-2026-118028) has been identified in the RewriteValve of Apache Tomcat, which allows attackers to have a request processed by the application even though a forbidden ([F]), gone ([G]) or redirect ([R]) rewrite rule matched it. The error or redirect is sent to the client, but the request still continues down the pipeline, so access restrictions that rely on these rules do not stop the protected resource from being executed.

Per OWASP: Execution After Redirect (EAR) is an attack where an attacker ignores redirects and retrieves sensitive content intended for authenticated users.

This issue affects multiple versions of Apache Tomcat.

Details

Module Info

Vulnerability Info

This High-severity vulnerability is found in the org.apache.tomcat:tomcat-catalina package (also repackaged in org.apache.tomcat.embed:tomcat-embed-core) in multiple versions of Apache Tomcat. RewriteValve.invoke() evaluates each rewrite rule in turn. A rule only marks the request as rewritten when its substitution actually changes the URL or host. When a rule carrying the [F], [G] or [R] flag matches, the valve sends a 403 or 410 error or a redirect, sets done = true and leaves the rule loop:

// - forbidden
if (rule.isForbidden() && newtest != null) {
    response.sendError(HttpServletResponse.SC_FORBIDDEN);
    done = true;
    break;
}

After the loop, done is only consulted inside the rewritten branch. If the matching rule left the URL unchanged, for example a - substitution such as RewriteRule ^/admin/.* - [F], rewritten is still false and control falls into the else branch, which hands the request to the next valve unconditionally:

if (rewritten) {
    if (!done) {
        // rewrite the request and re-invoke the pipeline
    }
} else {
    Valve next = getNext();
    if (valveSkip) {
        next = next.getNext();
        if (next == null) {
            next = getNext();
        }
    }
    next.invoke(request, response);
}

The client receives the error or redirect, but the request is still dispatched to the mapped servlet or the rest of the pipeline. Any server-side action behind a URL that the operator blocked with an [F] or [G] rule, or diverted with an [R] rule, is therefore executed anyway, which defeats rewrite rules used as an access control.

Mitigation

Only recent versions of Apache Tomcat are community-supported. The community support version will not receive any updates to address this issue. For more information, see here.

Users of the affected components should apply one of the following mitigations:

  • Upgrade to a patched version of Apache Tomcat.
  • Leverage a commercial support partner like HeroDevs for post-EOL security support.

Credits

  • Yuval Saggie from Echo Frontier (finder)
  • Mor Weinberger from Echo Frontier (finder)
Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
High
ID
CVE-2026-118028
PROJECT Affected
Apache Tomcat
Versions Affected
>=9.0.87 <=9.0.123, >=10.1.20 <=10.1.61, >=11.0.0-M18 <=11.0.27, 8.5.100
NES Versions Affected
Published date
November 20, 2026
≈ Fix date
Category
Authorization Bypass
Vex Document
Download VEXHow do I use it?
Sign up for the latest vulnerability alerts fixed in
NES for Apache Tomcat
Rss feed icon
Subscribe via RSS
or

By submitting the form I acknowledge receipt of our Privacy Policy.

Thanks for signing up for our Newsletter! We look forward to connecting with you.
Oops! Something went wrong while submitting the form.