CVE-2025-54415 dag-factory's CI/CD Workflow Allows for Repository Takeover and Secret Exfiltration
Attackers can execute arbitrary code in CI/CD runners to steal secrets and take over the repository via a misconfigured pull_request_target workflow.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-54415?
CVE-2025-54415 is a critical command injection vulnerability in astronomer dag-factory, published on 26 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
dag-factory is a library for Apache Airflow® to construct DAGs declaratively via configuration files. In versions 0.23.0a8 and below, a high-severity vulnerability has been identified in the cicd.yml workflow within the astronomer/dag-factory GitHub repository. The workflow, specifically when triggered by pull_request_target, is susceptible to exploitation, allowing an attacker to execute arbitrary code within the GitHub Actions runner environment. This misconfiguration enables an attacker to establish a reverse shell, exfiltrate sensitive secrets, including the highly-privileged GITHUB_TOKEN, and ultimately gain full control over the repository. This is fixed in version 0.23.0a9.
Weakness: CWE-78
Which versions are affected by CVE-2025-54415?
How do I fix CVE-2025-54415?
No fix has been published for CVE-2025-54415 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2025-54415 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54415 exists.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-g5hx-xv45-9whg.