Bug 2489126 (CVE-2026-12382) - CVE-2026-12382 aap-gateway: missing requestHeadersToRemove allows mTLS bypass via Subject header spoofing
Summary: CVE-2026-12382 aap-gateway: missing requestHeadersToRemove allows mTLS bypass...
Keywords:
Status: NEW
Alias: CVE-2026-12382
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-16 10:09 UTC by OSIDB Bzimport
Modified: 2026-07-20 16:00 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:42078 0 None None None 2026-07-20 16:00:04 UTC

Description OSIDB Bzimport 2026-06-16 10:09:28 UTC
A flaw was found in the AAP Gateway Envoy proxy configuration. The gateway defines two routes to EDA external event streams: /mtls/eda-event-streams/ (which requires a validated TLS client certificate and adds the Subject header from the certificate DN) and /eda-event-streams/ (which has no authentication and ext_authz disabled). The source code at route.py:255 specifies requestHeadersToRemove: ["Subject"] for the non-mTLS route, but this directive is absent from the live xDS configuration delivered to Envoy. As a result, client-supplied Subject headers are forwarded verbatim to the EDA backend. An unauthenticated remote attacker can send a POST request to the non-mTLS route with a spoofed Subject header matching a legitimate client certificate Distinguished Name (DN) to bypass mTLS authentication and inject arbitrary events into protected event streams. The expected DN is leaked in the 403 error response body when an incorrect value is supplied, making exploitation trivial once the event stream UUID is known. Injected events trigger downstream rulebook actions which may include automation execution on managed infrastructure.

Comment 3 errata-xmlrpc 2026-07-20 16:00:03 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.5 for RHEL 9
  Red Hat Ansible Automation Platform 2.5 for RHEL 8

Via RHSA-2026:42078 https://access.redhat.com/errata/RHSA-2026:42078


Note You need to log in before you can comment on or make changes to this bug.