{
  "id": "CVE-2026-5366",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-5366",
  "published_at": "2026-06-20T16:43:37.345Z",
  "title": "Git Argument Injection in prefecthq/prefect",
  "vendor": "prefecthq",
  "product": "prefecthq/prefect",
  "cvss": {
    "score": 9.9,
    "source": "cna",
    "vector": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-06-27T13:41:44Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 6.9,
    "repo": "renat0z3r0/prefect-cve-2026-5366",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Prefect version 3.6.23 is vulnerable to remote code execution due to improper handling of user-controlled input in the `GitRepository` storage class. The `commit_sha` parameter, which is passed to git commands, lacks validation and does not include a `--` separator to distinguish user input from git flags. This allows attackers to inject arbitrary git flags, such as `--upload-pack`, enabling execution of external programs. Additionally, the `directories` parameter can be exploited to inject git flags during sparse-checkout operations. These vulnerabilities allow any user with deployment creation permissions to execute arbitrary commands on worker machines, compromising shared work pools in multi-tenant environments.",
  "cwe": "CWE-94",
  "cpes": [
    "cpe:2.3:a:prefect:prefect:3.6.23:-:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.9
  },
  "repos": [
    {
      "repo": "renat0z3r0/prefect-cve-2026-5366",
      "url": "https://github.com/renat0z3r0/prefect-cve-2026-5366",
      "created_at": "2026-06-27T13:41:44Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-02-01T14:31:52Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "prefecthq",
        "product": "prefecthq/prefect",
        "ranges": [
          "\u003e= unspecified, \u003c= latest"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "prefect",
        "ranges": [
          "\u003e= 3.1.11, \u003c 3.6.25"
        ],
        "fixed_in": [
          "3.6.25"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-7pm4-56h2-5rxr"
      }
    ],
    "upgrade": [
      "Upgrade prefect to 3.6.25 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
