<Vulnerability name="CVE-2026-53404">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Moderate</ThreatSeverity>
    <PublicDate>2026-06-29T20:39:45</PublicDate>
    <Bugzilla id="2494681" url="https://bugzilla.redhat.com/show_bug.cgi?id=2494681" xml:lang="en:us">
Apache Tomcat: Apache Tomcat: Incorrect control flow in rewrite valve allows unexpected rule processing
    </Bugzilla>
    <CVSS3 status="verified">
        <CVSS3BaseScore>6.5</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-358</CWE>
    <Details xml:lang="en:us" source="Mitre">
Always-Incorrect Control Flow Implementation vulnerability in Apache Tomcat's rewrite valve meant that if the first condition in an OR chain matched, subsequent non-OR conditions were skipped.

This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.22, from 10.1.0-M1 through 10.1.55, from 9.0.0.M1 through 9.0.118, from 8.5.0 through 8.5.100. Other versions that have reached end of support may also be affected.

Users are recommended to upgrade to version 11.0.23, 10.1.56 or 9.0.119, which fix the issue.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in Apache Tomcat's rewrite valve. This vulnerability involves an incorrect control flow implementation where, during the processing of rewrite rules, if the first condition in an OR chain matched, subsequent non-OR conditions were unexpectedly skipped. This can lead to unintended rule processing, potentially allowing for security bypasses or unauthorized access due to misapplied configurations.
    </Details>
    <Statement xml:lang="en:us">
A flaw was found in Apache Tomcat's RewriteValve. When rewrite rules use OR-chained conditions followed by non-OR conditions, the processing logic may not evaluate conditions correctly, potentially allowing unintended rule matches. Exploitation requires the RewriteValve to be enabled with specific OR-chained condition patterns, which is not a default configuration.
    </Statement>
    <Mitigation xml:lang="en:us">
This vulnerability only affects Tomcat deployments that use the RewriteValve with OR-chained rewrite conditions. Deployments that do not use the RewriteValve are not affected. Review rewrite rules for OR-chained conditions and test rule evaluation behavior.
    </Mitigation>
    <AffectedRelease cpe="cpe:/a:redhat:jboss_enterprise_web_server:6.2">
        <ProductName>Red Hat JBoss Web Server 6.2.4</ProductName>
        <ReleaseDate>2026-07-22T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:43402">RHSA-2026:43402</Advisory>
        <Package name="tomcat-catalina">tomcat-catalina</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:jboss_enterprise_web_server:6.2::el10">
        <ProductName>Red Hat JBoss Web Server 6.2 on RHEL 10</ProductName>
        <ReleaseDate>2026-07-22T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:43401">RHSA-2026:43401</Advisory>
        <Package name="jws6-tomcat">jws6-tomcat-0:10.1.49-15.redhat_00013.1.el10jws</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:jboss_enterprise_web_server:6.2::el8">
        <ProductName>Red Hat JBoss Web Server 6.2 on RHEL 8</ProductName>
        <ReleaseDate>2026-07-22T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:43401">RHSA-2026:43401</Advisory>
        <Package name="jws6-tomcat">jws6-tomcat-0:10.1.49-15.redhat_00013.1.el8jws</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:jboss_enterprise_web_server:6.2::el9">
        <ProductName>Red Hat JBoss Web Server 6.2 on RHEL 9</ProductName>
        <ReleaseDate>2026-07-22T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:43401">RHSA-2026:43401</Advisory>
        <Package name="jws6-tomcat">jws6-tomcat-0:10.1.49-15.redhat_00013.1.el9jws</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:jboss_enterprise_web_server:7.0">
        <ProductName>Red Hat JBoss Web Server 7.0.1</ProductName>
        <ReleaseDate>2026-08-05T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:49952">RHSA-2026:49952</Advisory>
        <Package name="tomcat-catalina">tomcat-catalina</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:jboss_enterprise_web_server:7.0::el10">
        <ProductName>Red Hat JBoss Web Server 7.0 on RHEL 10</ProductName>
        <ReleaseDate>2026-08-05T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:49951">RHSA-2026:49951</Advisory>
        <Package name="jws7-tomcat">jws7-tomcat-0:11.0.21-6.redhat_00005.1.el10jws</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:jboss_enterprise_web_server:7.0::el8">
        <ProductName>Red Hat JBoss Web Server 7.0 on RHEL 8</ProductName>
        <ReleaseDate>2026-08-05T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:49951">RHSA-2026:49951</Advisory>
        <Package name="jws7-tomcat">jws7-tomcat-0:11.0.21-6.redhat_00005.1.el8jws</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:jboss_enterprise_web_server:7.0::el9">
        <ProductName>Red Hat JBoss Web Server 7.0 on RHEL 9</ProductName>
        <ReleaseDate>2026-08-05T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:49951">RHSA-2026:49951</Advisory>
        <Package name="jws7-tomcat">jws7-tomcat-0:11.0.21-6.redhat_00005.1.el9jws</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:hummingbird:1">
        <ProductName>Red Hat Hardened Images</ProductName>
        <ReleaseDate>2026-06-24T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:29203">RHSA-2026:29203</Advisory>
        <Package name="tomcat10-main">tomcat10-main-10.1.56-1.hum1</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:hummingbird:1">
        <ProductName>Red Hat Hardened Images</ProductName>
        <ReleaseDate>2026-06-29T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:32960">RHSA-2026:32960</Advisory>
        <Package name="tomcat11-main">tomcat11-main-11.0.23-0.1.hum1</Package>
    </AffectedRelease>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:10">
        <ProductName>Red Hat Enterprise Linux 10</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>tomcat</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:10">
        <ProductName>Red Hat Enterprise Linux 10</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>tomcat9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:6">
        <ProductName>Red Hat Enterprise Linux 6</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>tomcat6</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:7">
        <ProductName>Red Hat Enterprise Linux 7</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>tomcat</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:8">
        <ProductName>Red Hat Enterprise Linux 8</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>pki-deps:10.6/pki-servlet-engine</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:8">
        <ProductName>Red Hat Enterprise Linux 8</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>tomcat</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:9">
        <ProductName>Red Hat Enterprise Linux 9</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>pki-servlet-engine</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:9">
        <ProductName>Red Hat Enterprise Linux 9</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>tomcat</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:jboss_enterprise_web_server:5">
        <ProductName>Red Hat JBoss Web Server 5</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>jws5-tomcat</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-53404
https://nvd.nist.gov/vuln/detail/CVE-2026-53404
https://lists.apache.org/thread/rdhpghgfskrdmw9hqzjgjrtw538smpmz
    </References>
</Vulnerability>