Critical severity · published Jun 20, 2026
CVE-2026-5366
Git Argument Injection in prefecthq/prefect
9.9
CVSS
1%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)1.0% · higher than 64% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PR
prefecthq/prefect · prefecthq
through latest · source: vendor
PR
Prefect · Prefect
3.6.23 · source: NVD
Affected product
PR
prefecthq/prefect
prefecthq
More from prefecthq/prefect
8.5
CVE-2026-3515
Argument Injection in prefecthq/prefect
7.6
CVE-2024-8183
CORS Misconfiguration in prefecthq/prefect
7.5
CVE-2026-3514
Authentication Bypass in prefecthq/prefect