<Vulnerability name="CVE-2026-18141">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-07-31T15:28:47</PublicDate>
    <Bugzilla id="2508155" url="https://bugzilla.redhat.com/show_bug.cgi?id=2508155" xml:lang="en:us">
aap-gateway: aap-gateway: Authentication bypass in Event-Driven Ansible via forged HTTP header
    </Bugzilla>
    <CVSS3 status="verified">
        <CVSS3BaseScore>8.2</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-295</CWE>
    <Details xml:lang="en:us" source="Mitre">
A flaw was found in aap-gateway, a component of Ansible Automation Platform's Event-Driven Ansible (EDA). An unauthenticated remote attacker can bypass mutual Transport Layer Security (mTLS) authentication for event streams. This is achieved by manipulating the event stream URL and forging the HTTP Subject header. The system also inadvertently discloses the expected certificate subject in error messages, which simplifies the attack. This vulnerability allows an attacker to inject arbitrary events into EDA, potentially triggering automated workflows.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in aap-gateway, a component of Ansible Automation Platform's Event-Driven Ansible (EDA). An unauthenticated remote attacker can bypass mutual Transport Layer Security (mTLS) authentication for event streams. This is achieved by manipulating the event stream URL and forging the HTTP Subject header. The system also inadvertently discloses the expected certificate subject in error messages, which simplifies the attack. This vulnerability allows an attacker to inject arbitrary events into EDA, potentially triggering automated workflows.
    </Details>
    <Statement xml:lang="en:us">
Important: Ansible Automation Platform 2.6 Event-Driven Ansible (EDA) is vulnerable to an authentication bypass, allowing unauthenticated remote attackers to inject arbitrary events into mTLS-protected event streams. This is due to a flaw in the `aap-gateway` configuration that permits bypassing mTLS by manipulating the URL and forging the Subject HTTP header. The vulnerability is exacerbated by information disclosure, where error messages reveal the expected certificate subject, simplifying targeted exploitation against default mTLS deployments.
    </Statement>
    <Mitigation xml:lang="en:us">
Restrict network access to the EDA event stream endpoints at the firewall or load balancer level. Ensure that only trusted sources are permitted to reach the event stream ports. Additionally, monitor EDA event logs for any unexpected events originating from unverified sources.
    </Mitigation>
    <AffectedRelease cpe="cpe:/a:redhat:ansible_automation_platform:2.6::el9">
        <ProductName>Red Hat Ansible Automation Platform 2.6 for RHEL 9</ProductName>
        <ReleaseDate>2026-08-04T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:50336">RHSA-2026:50336</Advisory>
        <Package name="automation-eda-controller">automation-eda-controller-0:1.2.11-1.el9ap</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:ansible_automation_platform:2.6::el9">
        <ProductName>Red Hat Ansible Automation Platform 2.6</ProductName>
        <ReleaseDate>2026-08-04T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:50479">RHSA-2026:50479</Advisory>
        <Package name="ansible-automation-platform-26/gateway-rhel9">ansible-automation-platform-26/gateway-rhel9:1785780020</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:ansible_automation_platform:2.7::el9">
        <ProductName>Red Hat Ansible Automation Platform 2.7</ProductName>
        <ReleaseDate>2026-08-04T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:50340">RHSA-2026:50340</Advisory>
        <Package name="ansible-automation-platform-27/gateway-rhel9">ansible-automation-platform-27/gateway-rhel9:1785435970</Package>
    </AffectedRelease>
    <PackageState cpe="cpe:/a:redhat:ansible_automation_platform:2">
        <ProductName>Red Hat Ansible Automation Platform 2</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>ansible-automation-platform-25/gateway-rhel8</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-18141
https://nvd.nist.gov/vuln/detail/CVE-2026-18141
    </References>
</Vulnerability>