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.
https://github.com/astronomer/dag-factory/security/advisories/GHSA-g5hx-xv45-9whg
https://github.com/astronomer/dag-factory/pull/466
https://github.com/astronomer/dag-factory/pull/460
https://github.com/astronomer/dag-factory/commit/751c0e58369e784f6a924347e381a705ea8133fe
Published: 2025-07-26
Updated: 2025-07-29
Base Score: 8.7
Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:C/A:C
Severity: High
Base Score: 7.2
Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Severity: High
Base Score: 9.1
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
Severity: Critical
EPSS: 0.00071