CVE-2026-66422

Apache Tomcat: Servlet role references can bypass declarative role constraints

Published Aug 25, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
Improper Authorization vulnerability in Apache Tomcat cause by security-role-ref definitions being incorrectly used as role aliases within the Realm in additional to the correct usage with Request.isUserInRole().



This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.24, from 10.1.0-M1 through 10.1.57, from 9.0.25 through 9.0.120.



The following versions were EOL at the time the CVE was created but are
known to be affected: from 8.5.46 through 8.5.100, from 7.0.97 through 7.0.109. Other unsupported versions may also be affected.



Users are recommended to upgrade to version 11.0.25, 10.1.58 or 9.0.121, which fix the issue.

Analysis

AI-generated

Technical impact

The vulnerability originates from Apache Tomcat's handling of security-role-ref elements, which are incorrectly treated as role aliases in the Realm. This misinterpretation allows a user who has a role that is referenced by security-role-ref to be considered as having that role, thereby bypassing declarative role constraints that are intended to restrict access. The outcome of this bug is a privilege escalation within applications running on Tomcat, enabling unauthorized actions and potentially exposing protected resources.

Affected Systems

All supported Apache Tomcat releases from 11.0.0‑M1 through 11.0.24, 10.1.0‑M1 through 10.1.57, and 9.0.25 through 9.0.120 are affected. Versions already marked End‑of‑Life, including 8.5.46 through 8.5.100 and 7.0.97 through 7.0.109, are also vulnerable, and other unsupported releases may be impacted as well. The affected vendor is the Apache Software Foundation and the product is Apache Tomcat.

Risk and Exploitability

The CVSS score is 8.1, and the EPSS score is <1%, indicating a high severity but a low probability of exploitation in the current threat landscape. However, the vulnerability is listed as not part of the CISA KEV catalog, suggesting no known widespread exploitation in the public domain. The flaw requires that an attacker be able to influence the role mapping or deploy code that references security-role-ref elements, implying that the attack vector is likely an application‑level or local privilege scenario. Because a correct attacker can elevate privileges within the Tomcat container, the risk is significant for any application that relies on declarative role constraints for sensitive functionality.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Tomcat installation to a patched release (11.0.25 or newer, 10.1.58 or newer, or 9.0.121 or newer).
  • If upgrading immediately is not feasible, review web‑application deployment descriptors and remove or correct any security-role-ref elements used as role aliases, ensuring that role mappings are defined explicitly via the <role-name> element.
  • Validate authorization logic within the application to use explicit role checks and avoid assuming that role aliases automatically enforce the intended constraints.

Generated by OpenCVE AI on September 1, 2026 at 14:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4889-1 tomcat10 security update
History
Type Values Removed Values Added
First Time appeared Apache
Apache tomcat
CPEs cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
Vendors & Products Apache
Apache tomcat
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Improper Authorization vulnerability in Apache Tomcat cause by security-role-ref definitions being incorrectly used as role aliases within the Realm in additional to the correct usage with Request.isUserInRole(). This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.24, from 10.1.0-M1 through 10.1.57, from 9.0.25 through 9.0.120. The following versions were EOL at the time the CVE was created but are known to be affected: from 8.5.46 through 8.5.100, from 7.0.97 through 7.0.109. Other unsupported versions may also be affected. Users are recommended to upgrade to version 11.0.25, 10.1.58 or 9.0.121, which fix the issue.
Title Apache Tomcat: Servlet role references can bypass declarative role constraints
Weaknesses CWE-285
References
Weaknesses
  • CWE-285

    Improper Authorization

  • CWE-386

    Symbolic Name not Mapping to Correct Object

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Aug 26, 2026, 6:52 PM
Reserved
Jul 27, 2026, 7:51 AM
Status
Analyzed
Published
Aug 25, 2026, 10:17 PM
Modified
Aug 27, 2026, 3:16 PM
Severity
Low
Public date
Aug 25, 2026, 9:55 PM