Bug 2370817 (CVE-2025-49521) - CVE-2025-49521 event-driven-ansible: Template Injection via Git Branch and Refspec in EDA Projects
Summary: CVE-2025-49521 event-driven-ansible: Template Injection via Git Branch and Re...
Keywords:
Status: NEW
Alias: CVE-2025-49521
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-06 15:39 UTC by OSIDB Bzimport
Modified: 2025-06-30 21:20 UTC (History)
22 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-2025:9986 0 None None None 2025-06-30 21:20:47 UTC

Description OSIDB Bzimport 2025-06-06 15:39:43 UTC
Template Injection vulnerability in the Git metadata fields (branch, tag, commit, refspec) of the EDA project creation process in the Ansible Automation Platform. The flaw occurs because user inputs are directly passed to Ansible Jinja2 templates and evaluated without proper sanitization. An attacker can inject expressions such as {{ lookup('file', '/etc/passwd') }} or {{ lookup('lines','id') }} that are executed during project synchronization. This results in arbitrary command execution and file disclosure on the EDA worker. In OpenShift environments, the attacker can retrieve the service account token used by the worker pod and escalate access within the cluster.

Comment 2 errata-xmlrpc 2025-06-30 21:20:45 UTC
This issue has been addressed in the following products:

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

Via RHSA-2025:9986 https://access.redhat.com/errata/RHSA-2025:9986


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