{"document":{"category":"csaf_vex","csaf_version":"2.0","title":"CVE-2026-5366: Git Argument Injection in prefecthq/prefect","publisher":{"category":"vendor","name":"HarborGuard Database","namespace":"https://database.harborguard.co"},"tracking":{"id":"CVE-2026-5366","status":"final","version":"1","initial_release_date":"2026-06-20T16:43:37.345Z","current_release_date":"2026-06-20T16:43:37.345Z","revision_history":[{"date":"2026-06-20T16:43:37.345Z","number":"1","summary":"Initial machine-readable export from HarborGuard."}]},"distribution":{"tlp":{"label":"WHITE"},"text":"Public CVE data; freely redistributable."},"notes":[{"category":"description","text":"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.","title":"CVE description"}],"references":[{"category":"self","summary":"CVE-2026-5366 on HarborGuard Database","url":"https://database.harborguard.co/cve/CVE-2026-5366"},{"category":"external","summary":"CVE Record","url":"https://www.cve.org/CVERecord?id=CVE-2026-5366"},{"category":"external","summary":"huntr.com","url":"https://huntr.com/bounties/e2e88a0f-a8f6-49c9-94c5-e98dc385f07a"}]},"product_tree":{"branches":[{"category":"vendor","name":"prefecthq","branches":[{"category":"product_name","name":"prefecthq/prefect","branches":[{"category":"product_version_range","name":">=unspecified <=latest","product":{"name":"prefecthq prefecthq/prefect >=unspecified <=latest","product_id":"CSAFPID-1","product_identification_helper":{"cpe":"cpe:2.3:a:prefecthq:prefecthq\\/prefect:*:*:*:*:*:*:*:*"}}}]}]}]},"vulnerabilities":[{"cve":"CVE-2026-5366","title":"Git Argument Injection in prefecthq/prefect","notes":[{"category":"description","text":"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.","title":"CVE description"}],"product_status":{"known_affected":["CSAFPID-1"]},"scores":[{"cvss_v3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","baseScore":9.9,"baseSeverity":"CRITICAL"},"products":["CSAFPID-1"]}],"remediations":[{"category":"none_available","details":"No fixed version is published yet. Monitor the upstream advisory.","product_ids":["CSAFPID-1"]}]}]}