{"id":"CVE-2025-54415","state":"PUBLISHED","title":"dag-factory's CI/CD Workflow Allows for Repository Takeover and Secret Exfiltration","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.","publishedAt":"2025-07-26T03:33:39.933Z","updatedAt":"2025-07-28T14:44:53.312Z","severity":{"score":9.1,"label":"Critical","version":"4.0","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","source":"GitHub_M"},"assigner":"GitHub_M","products":["astronomer dag-factory"],"affected":[{"vendor":"astronomer","product":"dag-factory","versions":[{"version":"< 0.23.0a9","status":"affected"}]}],"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"],"weaknesses":["CWE-78"],"ingestedAt":"2026-10-29T20:09:31.862Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/54xxx/CVE-2025-54415.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-54415","state":"PUBLISHED","datePublished":"2025-07-26T03:33:39.933Z","dateUpdated":"2025-07-28T14:44:53.312Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-07-21T23:18:10.280Z"},"containers":{"cna":{"title":"dag-factory's CI/CD Workflow Allows for Repository Takeover and Secret Exfiltration","descriptions":[{"lang":"en","value":"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":[{"vendor":"astronomer","product":"dag-factory","versions":[{"version":"< 0.23.0a9","status":"affected"}]}],"references":[{"url":"https://github.com/astronomer/dag-factory/security/advisories/GHSA-g5hx-xv45-9whg","name":"https://github.com/astronomer/dag-factory/security/advisories/GHSA-g5hx-xv45-9whg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/astronomer/dag-factory/pull/460","name":"https://github.com/astronomer/dag-factory/pull/460","tags":["x_refsource_MISC"]},{"url":"https://github.com/astronomer/dag-factory/pull/466","name":"https://github.com/astronomer/dag-factory/pull/466","tags":["x_refsource_MISC"]},{"url":"https://github.com/astronomer/dag-factory/commit/751c0e58369e784f6a924347e381a705ea8133fe","name":"https://github.com/astronomer/dag-factory/commit/751c0e58369e784f6a924347e381a705ea8133fe","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","subAvailabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","lang":"en","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-07-26T03:33:39.933Z"},"source":{"advisory":"GHSA-g5hx-xv45-9whg","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-07-28T14:44:32.467322Z","id":"CVE-2025-54415","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-07-28T14:44:53.312Z"}}]}}}