CVE-2026-106012: Apache Tomcat checks security-role-ref against the wrong servlet on forward

ByLinuxtastic

November 30, 2026 #Apache Tomcat, #CVE

Apache Tomcat’s 19 November 2026 set included an authorisation bug that has been in every Tomcat since 7.0: when one servlet forwards or includes to another, the security-role-ref mappings consulted by isUserInRole() were those of the servlet the request started in, not the servlet that is now handling it, so a target servlet whose role names are remapped in web.xml could grant or deny on the wrong mapping. Tomcat rates it Low; CISA’s enrichment scores it 7.3; Red Hat scores it 3.7. Upgrade Tomcat to 11.0.29, 10.1.62 or 9.0.124 (11.0.28 was never released); the exposure is confined to applications that declare security-role-ref elements and dispatch between servlets. No credit line is given.

CVE-2026-106012 at a glance.

ComponentApache Tomcat, request dispatch (ApplicationDispatcher, ApplicationHttpRequest) and Request.isUserInRole() in Catalina
Affected versions11.0.0-M1 to 11.0.27, 10.1.0-M1 to 10.1.61, 9.0.0.M1 to 9.0.123; the end-of-life 8.5.0 to 8.5.100 and 7.0.0 to 7.0.109 are “known to be affected”
Fixed in11.0.29, 10.1.62 and 9.0.124 (Tomcat’s security pages date the fixes 13 and 16 November 2026; 11.0.28 was not released); commits 4d829c56 (11), 76b809b8 (10.1), b9431c83 (9), “Use RequestDispatcher target rather than source for security-role-refs”, eight files. No distribution has shipped a fixed package yet: Debian sid’s tomcat10 and tomcat11 were still 10.1.61-1 and 11.0.27-1 when the tracker was read
SeverityTomcat: Low. CISA ADP CVSS 3.1 7.3 High (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L), SSVC exploitation none, automatable yes, technical impact partial; NVD files CWE-863 (incorrect authorisation); Red Hat Low, 3.7 (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N, draft), CWE-270; SUSE important, 7.3 and CVSS 4.0 6.9; Ubuntu medium
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.27). EPSS 0.0030 (15th percentile) on 25 November 2026
Who is exposedWeb applications that use container-managed security with security-role-ref elements in web.xml to map a role name used in code to a real role, and that reach the servlet relying on that mapping through RequestDispatcher.forward() or include() rather than directly. Red Hat’s statement puts it down to a specialised configuration of forwards and includes; an application with no security-role-ref elements, or one that never dispatches between servlets, is not exposed
PublishedReported to the Tomcat security team 17 September 2026; made public and CVE record 19 November 2026; this page built 1 December 2026, last updated 1 December 2026

What it is

The servlet specification lets a deployment descriptor say, per servlet, that the role name a servlet checks in code (“manager”, say, in request.isUserInRole("manager")) really means some other role defined for the application (“ops-leads”). That is the security-role-ref element, and the container resolves it by looking at which servlet is asking. Apache’s description is one sentence: an “Incorrect Authorization vulnerability in Apache Tomcat could occur during a request dispatch if the request depended on a security-role-ref provided by the dispatch target”. When servlet A forwards to servlet B, B asks isUserInRole, and Tomcat answered using A’s role references instead of B’s. If B’s descriptor maps “manager” to a narrow role and A’s does not map it at all, the user is checked against the literal role “manager” rather than “ops-leads”, and may pass where B’s author meant them to fail; the reverse mapping produces the reverse mistake.

The fix commits are titled “Use RequestDispatcher target rather than source for security-role-refs” and touch eight files: java/org/apache/catalina/connector/Request.java and RequestFacade.java, core/ApplicationDispatcher.java, core/ApplicationHttpRequest.java (the largest change, some eighty lines), mapper/MappingData.java, two test classes and the changelog. Our reading of the diff is that Request.isUserInRole() now takes the wrapper and context from the dispatcher’s mapping data when a RequestDispatcher is in use, and ApplicationHttpRequest gains a field recording the target wrapper, so the role references of the servlet actually running are the ones consulted.

The scores disagree more than usual. CISA’s enrichment gives the generic 7.3 for an unauthenticated network flaw with low impact on each of confidentiality, integrity and availability; Red Hat’s 3.7 reflects that the attacker needs an application already built in a particular way (AC:H) and that what they gain is bounded by the mismatch between two role names in one descriptor. Tomcat’s own Low is closer to Red Hat’s view. This CVE is one of the 19 November 2026 set that also fixed the LoadBalancerDrainingValve redirect (CVE-2026-117517), the HTTP upgrade memory leak (CVE-2026-118233), the CGI servlet hang (CVE-2026-118436), the OpenWebBeans WebSocket leak (CVE-2026-116600) and the HTTP/2 frame check order (CVE-2026-116830); the same releases fix all of them.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. Many Tomcat installations are upstream tarballs under /opt, which no tracker covers.

DistributionStatusFixed package
AlpineNot consulted for this page—
DebianVulnerable: tomcat10 in bookworm (10.1.60-1~deb12u1), trixie (10.1.60-1~deb13u1) and sid (10.1.61-1); tomcat11 in trixie (11.0.22-1~deb13u1) and sid (11.0.27-1); bugs 1154583 and 1154584; tomcat9 is listed fixed only because 9.0.70-2 stopped shipping the servernone yet; the fixed upstream versions 10.1.62 and 11.0.29 are referenced
Ubuntumedium; tomcat9, tomcat10 and tomcat11 needs evaluation on every release that ships themnone yet; no USN
RHEL, JWS, EAPLow, 3.7, CWE-270 (bug 2577424); the only products listed are the Hardened Images tomcat10 and tomcat11, Affected; no errata; “Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria”none
openSUSE/SLEimportant, 7.3, Pending (bug 1291047); tomcat, tomcat10 and tomcat11 Affected on SLE 15 SP7, 16.0, 16.1 and Leap 16.xnone yet
Fedora, Arch; upstream tarballs; container images (tomcat:9, tomcat:10.1, tomcat:11)Not consulted; the upstream release applies11.0.29, 10.1.62 or 9.0.124; rebuild images on the fixed tag

How to check

Three questions: which Tomcat build is running, whether any deployed application declares security-role-ref, and whether those applications dispatch between servlets. The second is the one that decides exposure; most applications never use the element.

# 1. the running build
for p in $(pgrep -f 'org.apache.catalina.startup.Bootstrap'); do d=$(tr '\0' ' ' </proc/$p/cmdline | grep -oE '\-Dcatalina.home=[^ ]+' | cut -d= -f2); java -cp "${d:-/usr/share/tomcat}/lib/catalina.jar" org.apache.catalina.util.ServerInfo 2>/dev/null | head -1; done
dpkg -l 'tomcat*' 2>/dev/null | awk '/^ii/{print $2, $3}'; rpm -q tomcat 2>/dev/null

# 2. does any deployed application remap role names? (exploded apps and WARs)
grep -rl 'security-role-ref' /var/lib/tomcat*/webapps/*/WEB-INF/web.xml /opt/*/webapps/*/WEB-INF/web.xml 2>/dev/null
for w in /var/lib/tomcat*/webapps/*.war /opt/*/webapps/*.war; do unzip -p "$w" WEB-INF/web.xml 2>/dev/null | grep -q 'security-role-ref' && echo "$w"; done

# 3. do those applications forward or include between servlets?
grep -rlE 'getRequestDispatcher|RequestDispatcher\.(forward|include)|<jsp:(forward|include)' /var/lib/tomcat*/webapps/*/WEB-INF /opt/*/webapps/*/WEB-INF 2>/dev/null | head

A build at 11.0.29, 10.1.62 or 9.0.124 is fixed. On an older build, an empty result from the second block means no application on the host can be affected, whatever the third says. A hit in both means the application’s role decisions after a forward were being made against the wrong servlet’s mappings, which is a reason to read the descriptor with the application’s owner, not just to patch.

How to fix it

Upgrade to the fixed release of the line you run and restart Tomcat. No distribution had a fixed package on 1 December, so packaged installs wait on their vendor; tarball and container installs can move today.

# tarball installs: unpack the fixed release beside the old one, keep conf/ and webapps/, then
systemctl restart tomcat
# container images
docker pull tomcat:10.1.62-jdk21 && docker compose up -d
# packaged installs: watch the tracker row for your distribution, then
apt install --only-upgrade tomcat10 tomcat11   # or: dnf upgrade tomcat / zypper patch

Red Hat lists no mitigation that meets its criteria, and the only application-side one is to make the role references consistent across the servlets in a dispatch chain, so that the source’s mapping and the target’s agree; that removes the mismatch the bug exploits but is a change to the application, not the server. What not to do: do not strip security-role-ref elements out of a descriptor to “simplify” it, because code that checks the mapped name will then be checked against a role that may not exist, and will fail closed in a way that looks like an outage.

Sources

  • CVE-2026-106012 at CVE.org — the Apache CNA record (19 November 2026): the description, affected and fixed versions, “Incorrect Authorization”; the CISA ADP adds the 7.3 vector, CWE-863 and the SSVC
  • Tomcat 11 security page, Tomcat 10 security page and Tomcat 9 security page — the Low rating, the affected ranges, the report and disclosure dates, the fix commits
  • Fix commits 4d829c56 (11.0.x), 76b809b8 (10.1.x) and b9431c83 (9.0.x) — “Use RequestDispatcher target rather than source for security-role-refs”, eight files
  • The announcement thread — the reference in the CVE record; its body was not readable by our tools on 1 December
  • Red Hat CVE page and bug 2577424 — Low 3.7, CWE-270, the “specialized configuration” statement, no mitigation, the Hardened Images rows
  • NVD entry — Awaiting Analysis; the ADP vector and SSVC; no CPEs yet
  • Distribution trackers: Debian (bugs 1154583, 1154584) · Ubuntu (medium, needs evaluation) · SUSE (important, Pending, bug 1291047)
  • CISA KEV catalogue 2026.11.27, not listed · EPSS score for this CVE, 25 November 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 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.