9.9
Critical
CVE-2026-5366 Prefect version 3.6.23 is vulnerable to remote code execution due to improper handling of user-controlled input in the…
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.
Affected products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| prefecthq/prefect | Versions not published |
Other CVEs of prefecthq/prefect
The 5 CVEs of prefecthq/prefect →
CVE-2026-3514
In version 3.6.19 of prefecthq/prefect, an authentication bypass vulnerability exists due to the improper handling of…
7.5
High
CVE-2026-3515
A vulnerability in the `GitHubRepository` block of the `prefect-github` integration in Prefect version 3.6.18 allows…
8.5
High
CVE-2024-8183
A CORS (Cross-Origin Resource Sharing) misconfiguration in prefecthq/prefect version 2.20.2 allows unauthorized…
7.6
High
CVE-2023-6022
Cross-Site Request Forgery (CSRF) in GitHub repository prefecthq/prefect prior to 2.16.5
8.8
High