{
  "id": "CVE-2025-54415",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-54415",
  "published_at": "2025-07-26T03:33:39.933Z",
  "title": "dag-factory's CI/CD Workflow Allows for Repository Takeover and Secret Exfiltration",
  "vendor": "astronomer",
  "product": "dag-factory",
  "cvss": {
    "score": 9.1,
    "source": "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-09-04T06:41:28Z",
    "first_seen_at": "2026-11-14T14:50:35.824Z",
    "days_after_publication": 405.1,
    "repo": "pvharmo2/gha-lab-f894926966",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-78",
  "cvss_by_source": {
    "cna": 9.1
  },
  "repos": [
    {
      "repo": "pvharmo2/gha-lab-f894926966",
      "url": "https://github.com/pvharmo2/gha-lab-f894926966",
      "created_at": "2026-09-04T06:41:28Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-07-12T22:04:11Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "astronomer",
        "product": "dag-factory",
        "ranges": [
          "\u003c 0.23.0a9"
        ],
        "fixed_in": [
          "0.23.0a9"
        ]
      }
    ],
    "upgrade": [
      "Upgrade dag-factory to 0.23.0a9 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/astronomer/dag-factory/security/advisories/GHSA-g5hx-xv45-9whg"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/astronomer/dag-factory/pull/460"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/astronomer/dag-factory/pull/466"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/astronomer/dag-factory/commit/751c0e58369e784f6a924347e381a705ea8133fe"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/api/packages/{var}/recent",
      "protocol": "https",
      "repos": [
        "pvharmo2/gha-lab-f894926966"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "pvharmo2/gha-lab-f894926966/dev/dags/pypi_stats.py:39"
      ]
    },
    {
      "method": "GET",
      "path_template": "/v0/item/{}.json",
      "protocol": "https",
      "repos": [
        "pvharmo2/gha-lab-f894926966"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "pvharmo2/gha-lab-f894926966/dev/dags/comparison/example_hackernews_plain_airflow.py:18",
        "pvharmo2/gha-lab-f894926966/dev/dags/comparison/example_hackernews_plain_airflow.py:25"
      ]
    }
  ],
  "rules": []
}
