Astronomer dag-factory
dag-factory's CI/CD Workflow Allows for Repository Takeover and Secret Exfiltration
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.23.0a9
Fixed in 0.23.0a9
Mitigation
Upgrade dag-factory to 0.23.0a9 or later.
References
- Vendor advisory github.com/astronomer/dag-factory/security/adv…
- Patch github.com/astronomer/dag-factory/pull/460
- Patch github.com/astronomer/dag-factory/pull/466
1 more
Timeline
Days relative to CVE publicationFirst public PoC 1.1 years after publication; not in CISA KEV. First PoC: pvharmo2/gha-lab-f894926966 (created 4 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| pvharmo2/gha-lab-f894926966 | 4 Sep 2026 +1.1 y | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /api/packages/{var}/recent
- Seen in
- 1 repo: pvharmo2/gha-lab-f894926966
- Evidence
- pvharmo2/gha-lab-f894926966/dev/dags/pypi_stats.py:39
GET /v0/item/{}.json
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/packages/[^/?#]*/recent(?:[?#].*)?$
(?i)^/v0/item/\{\}\.json(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-54415 astronomer dag-factory exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/packages/"; http.uri; content:"/recent"; reference:url,poc.griffinguard.io/cve/CVE-2025-54415; classtype:web-application-attack; sid:9014288; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-54415 astronomer dag-factory exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/v0/item/{}.json"; reference:url,poc.griffinguard.io/cve/CVE-2025-54415; classtype:web-application-attack; sid:9271427; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: astronomer dag-factory exploit attempt (CVE-2025-54415)
id: gg-pocmon-cve-2025-54415-9014288
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-54415. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-54415
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/packages/'
- '/recent'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.54415
title: astronomer dag-factory exploit attempt (CVE-2025-54415)
id: gg-pocmon-cve-2025-54415-9271427
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-54415. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-54415
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/v0/item/{}.json'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.54415