Bug 2371644 (CVE-2025-5988)

Summary: CVE-2025-5988 aap-gateway: CSRF origin checking is disabled
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: carogers, erezende, haoli, hkataria, jajackso, jcammara, jmitchel, jneedle, kegrant, koliveir, kshier, mabashia, pbraun, security-response-team, shvarugh, simaishi, smcdonal, stcannon, teagle, tfister, thavo, yguenane
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the Ansible aap-gateway. Cross-site request forgery (CSRF) origin checking is not done on requests from the gateway to external components, such as the controller, hub, and eda.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Deadline: 2025-08-31   

Description OSIDB Bzimport 2025-06-11 02:10:18 UTC
CSRF origin checking is not done on requests from the gateway to external components (controller, hub, eda)

Requirements to exploit:

TLS edge termination prior to a request being passed into the gateway. Any requests that were made via HTTPS will have referer checking in place of origin checking.
The attacker must have a CSRF form token associated with the user's CSRF cookie. This would mean that they'd need to make a cross-origin request to the platform via JavaScript using the victim's cookies (This should be blocked by most modern browsers), or otherwise find some other means of deriving this token.

Comment 4 errata-xmlrpc 2025-08-04 18: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-2025:12772 https://access.redhat.com/errata/RHSA-2025:12772