CVE-2025-54415
JSON

9.1critical

dag-factory's CI/CD Workflow Allows for Repository Takeover and Secret Exfiltration

Severity
9.1critical CVSS:4.0 by GitHub_M
Exploit likelihood
0.76% (higher than 56% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
astronomer dag-factory< 0.23.0a9CVE List

Classification

CWE-78

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

dag-factory es una librería para Apache Airflow® que permite construir DAGs declarativamente mediante archivos de configuración. En las versiones 0.23.0a8 y anteriores, se identificó una vulnerabilidad de alta gravedad en el flujo de trabajo cicd.yml del repositorio de GitHub astronomer/dag-factory. Este flujo de trabajo, especialmente cuando se activa mediante pull_request_target, es susceptible de explotación, lo que permite a un atacante ejecutar código arbitrario en el entorno de ejecución de GitHub Actions. Esta configuración incorrecta permite a un atacante establecer un shell inverso, extraer información confidencial, incluido el token GITHUB_TOKEN con privilegios elevados, y finalmente obtener el control total del repositorio. Esto se ha corregido en la versión 0.23.0a9.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-54415 changed 2025-07-28CVE Terms of Use
NVDCVE-2025-54415 changed 2026-06-17Public domain