CVE-2026-118028: Apache Tomcat RewriteValve [F]/[G]/[R] rules keep processing after they should stop

ByLinuxtastic

November 30, 2026 #Apache Tomcat, #CVE

Tomcat’s RewriteValve rewrites and filters URLs with Apache-style rules, and three of its flags are supposed to end a request there and then: [F] returns 403 Forbidden, [G] returns 410 Gone, and [R] redirects. The bug is that after the valve sent one of those responses, it carried on processing the request instead of stopping, so the request reached the application anyway: an “execution after redirect” flaw in which a rule you wrote to block or redirect a URL does not actually block it. CISA’s analysts score it 9.1 and Red Hat’s statement calls it Critical, because a RewriteValve rule is often the thing standing between the internet and an admin path; Apache labels it Important. The fix releases, 11.0.29, 10.1.62 and 9.0.124, have shipped. Upgrade Tomcat to 11.0.29, 10.1.62, 9.0.124 or your distribution’s patched package and restart it; if you cannot today, move the blocking and redirect rules to the reverse proxy in front of Tomcat, or disable the RewriteValve. A Tomcat with no RewriteValve configured is not affected.

CVE-2026-118028 at a glance.

ComponentApache Tomcat, the rewrite valve (org.apache.catalina.valves.rewrite.RewriteValve) when a rule uses the [F], [G] or [R] flag; Debian and Ubuntu tomcat9, tomcat10, tomcat11
Affected versionsTomcat 11.0.0-M18 to 11.0.27, 10.1.20 to 10.1.61 and 9.0.87 to 9.0.123; the EOL 8.5.100 is also listed affected. Only when a RewriteValve rule uses [F], [G] or [R]
Fixed inTomcat 11.0.29 (fix dated 13 November 2026), 10.1.62 (16 November) and 9.0.124 (13 November), all released; fix commits b756a2b1 (11.0.x), 3747d6c7 (10.1.x) and a51516e6 (9.0.x). Distribution packages below
SeverityCISA ADP CVSS 3.1 9.1 Critical (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N); Apache assigns no vector and labels it Important. Red Hat Important by rating, though its statement says “rated as Critical severity for Red Hat products”; Ubuntu medium. CWE-698, execution after redirect
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 30 November 2026; CISA’s SSVC says no known exploitation, automatable, total technical impact. EPSS 0.0053 (38th percentile) on 29 November 2026
Who is exposedTomcats that use the RewriteValve to enforce access, with [F] to forbid paths, [G] to retire them or [R] to redirect, and that rely on those rules rather than on application-level checks or a front proxy. If a forbidden or redirected URL still reaches a servlet that acts on it, the protection the rule was meant to provide is gone. A Tomcat behind a proxy that does its own filtering, or one with no rewrite rules, is not exposed through this
PublishedCVE record and the Apache security pages, 19 November 2026 (reported 5 October 2026; credit Yuval Saggie and Mor Weinberger, powered by Echo Frontier); this page built 30 November 2026, last updated 30 November 2026

What it is

The RewriteValve is Tomcat’s version of Apache mod_rewrite: a list of rules, each a pattern and a set of flags, applied to the request URL before it reaches a servlet. Three flags are terminal by design. [F] “forces the current URL to be forbidden” and, in Tomcat’s own documentation, “immediately sends back an HTTP response of 403”; [G] does the same with 410 Gone; [R] sends a redirect. “Immediately” is the promise: once the valve has sent that response, the request should go no further.

It did not. After sending the 403, 410 or redirect, the valve fell through and kept processing the request, so the pipeline continued and the request reached whatever was behind the rule. The response the client saw was the block or the redirect, but the server had also run the thing the rule was supposed to prevent: writing a record, triggering an action, exposing data through a side effect. That is the “execution after redirect” pattern, CWE-698, and it is why CISA scores the confidentiality and integrity impact high while leaving availability untouched. The one-line fix in RewriteValve.java makes the fall-through conditional on the request not already being done, changing } else { to } else if (!done) {; the commit is titled “Skip processing when not required”. It was published on 19 November 2026 as one of a group of Apache Tomcat advisories fixed in 11.0.29, 10.1.62 and 9.0.124, which also carry the Critical TLS-PSK clustering bug CVE-2026-133325 (fixed a release later, in 11.0.30, 10.1.63 and 9.0.125).

How much this matters depends on what your rules guard. A RewriteValve that only rewrites cosmetic URLs loses little; one that uses [F] to keep the internet out of /manager or an internal API, or [R] to force a login redirect, was relying on the “immediately” that did not hold. Red Hat’s mitigation, which doubles as the architectural lesson, is to disable the RewriteValve or move the filtering and redirection to an upstream proxy; Red Hat also notes that its standard deployments do not enable the RewriteValve by default, which is why most RHEL Tomcats are not exposed.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one. Debian’s tomcat9 no longer ships the server stack, so its rows describe tomcat10 and tomcat11; most production Tomcats on Linux are the upstream tarball, not a distribution package.

DistributionStatusFixed package
Debian bookworm, trixie, forky, sidVulnerable on stable (tomcat10, tomcat11); fixed in forky/sidbookworm tomcat10 10.1.55-1~deb12u1 and the 10.1.60 security builds, trixie tomcat11 11.0.22-1~deb13u1, all listed vulnerable; forky and sid tomcat10 10.1.62-1 and tomcat11 11.0.29-1 fixed; no DSA or DLA issued yet
Ubuntu 20.04 to 26.04Needs triage (priority medium)no fixed tomcat9, tomcat10 or tomcat11 listed for any release on 30 November
RHEL, JBoss Web ServerImportant (statement says Critical); Hardened Images fixed, RHEL under investigationRed Hat Hardened Images tomcat10-main-10.1.62 (RHSA-2026:101665, 22 November 2026) and tomcat11-main-11.0.29 (RHSA-2026:103379, 24 November); RHEL 6 to 10 tomcat under investigation on 30 November; JBoss Web Server 6 affected, JWS 5 fix deferred, JWS 7 under investigation
Fedora, openSUSE, Arch, AlpineNot consultedtrackers not read for this page
Upstream tarballs, the official tomcat Docker image, any Tomcat you unpacked yourselfAffected below the fixed releaseTomcat 11.0.29, 10.1.62 or 9.0.124 and later; the download pages offered these on 30 November 2026

How to check

Two questions: is this one of the affected builds, and does the configuration use a RewriteValve with a [F], [G] or [R] rule. The second clears every Tomcat that does not use the valve, which is most of them.

# the running Tomcat version (adjust CATALINA_HOME; distribution packages: /usr/share/tomcat10, /usr/share/tomcat9)
CATALINA_HOME=${CATALINA_HOME:-/opt/tomcat}
java -cp "$CATALINA_HOME/lib/catalina.jar" org.apache.catalina.util.ServerInfo 2>/dev/null | grep 'Server number'
dpkg -l 'tomcat*' 2>/dev/null | grep '^ii'              # Debian / Ubuntu
rpm -q tomcat 2>/dev/null                               # RHEL family
# affected: 11.0.0-M18..11.0.27, 10.1.20..10.1.61, 9.0.87..9.0.123, 8.5.100

# is the RewriteValve configured at all?
grep -rnE 'org\.apache\.catalina\.valves\.rewrite\.RewriteValve' "$CATALINA_HOME"/conf/ /etc/tomcat*/ 2>/dev/null
# the rules live in rewrite.config files under the engine/host/context
find "$CATALINA_HOME" /var/lib/tomcat* -name rewrite.config 2>/dev/null -exec echo '== {} ==' \; -exec grep -nE '\[(F|G|R)[,\]]' {} \;

A build newer than the affected ceilings, or no RewriteValve line in the config, means you are done. A rewrite.config that contains a rule with [F], [G] or [R] is the vulnerable configuration; the question then is what each such rule guards, because that is what was reachable despite the rule. Rules that only rewrite paths without those three flags are not affected.

There is no single log line for this, because the client got the expected 403 or redirect; the evidence is in the application behind the rule. If a rule guards an admin path, look in the application’s own logs for actions on that path from requests that the access log shows got a 403 or 302.

# access-log requests to a guarded path that returned 403/410/302 ...
grep -hE ' (403|410|302) ' "$CATALINA_HOME"/logs/localhost_access_log.*.txt 2>/dev/null | grep -E '/manager|/admin|<your guarded path>' | tail
# ... then check whether the application acted on those same requests (application log, not Tomcat's)

A request that the access log shows was forbidden or redirected, appearing in the application’s own log as a handled action, is the bug happening: the client was told no, the server did it anyway. Absence of such pairs is reassuring but not proof, since not every side effect is logged; the upgrade is what closes it.

How to fix it

Upgrade Tomcat to the fixed release and restart it. The upstream releases shipped in mid-November; Debian’s forky and sid and Red Hat’s Hardened Images have packages, while stable Debian, Ubuntu and the RHEL base packages had not caught up on 30 November.

# upstream tarball: replace with 11.0.29 / 10.1.62 / 9.0.124 (or later), then restart
systemctl restart tomcat
java -cp "$CATALINA_HOME/lib/catalina.jar" org.apache.catalina.util.ServerInfo | grep 'Server number'

# Debian forky/sid and RHEL Hardened Images have packages; stable Debian and Ubuntu did not on 30 November
apt update && apt install --only-upgrade tomcat10 tomcat11
dnf update tomcat

ps -o pid,lstart,args -C java | grep -i catalina | head   # start time must be after the upgrade

If you cannot upgrade today, do not rely on the RewriteValve for anything that matters. Move the blocking and redirect rules to the reverse proxy in front of Tomcat, where a 403 really does end the request, or disable the valve and enforce the same rules in the application. Red Hat names both routes.

# option A: enforce the rule at the proxy instead (nginx example for a path RewriteValve used to forbid)
#   location /manager/ { deny all; return 403; }
# option B: remove the RewriteValve from server.xml / context.xml and restart
grep -rn 'RewriteValve' "$CATALINA_HOME"/conf/ /etc/tomcat*/ 2>/dev/null   # find the <Valve> line to comment out
systemctl restart tomcat

Do not assume the client seeing a 403 means the request stopped; that is exactly the appearance this bug wears. Do not move only some rules to the proxy and leave the sensitive ones in the valve; the whole point is that the valve’s terminal flags were not terminal, so anything you still trust it with is still exposed until the upgrade.

Sources

Related reading

This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.