CVE-2025-49521 Event-driven-ansible: template injection via git branch and refspec in eda projects

High 8.8 Published Updated

Authenticated users can inject Jinja2 templates via Git branch values to execute commands or steal tokens on EDA workers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-49521?

CVE-2025-49521 is a high-severity code injection vulnerability in Red Hat Ansible Automation Platform 2.5 for RHEL 8, published on 30 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A flaw was found in the EDA component of the Ansible Automation Platform, where user-supplied Git branch or refspec values are evaluated as Jinja2 templates. This vulnerability allows authenticated users to inject expressions that execute commands or access sensitive files on the EDA worker. In OpenShift, it can lead to service account token theft.

Weakness: CWE-94

Which versions are affected by CVE-2025-49521?

How do I fix CVE-2025-49521?

Apply the vendor's patch.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-49521 being exploited?

There is no known exploitation of CVE-2025-49521 in the wild and no public exploit code.

Sources

Also known as GHSA-g6ph-9xfv-87c2.

Is CVE-2025-49521 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free