PT-2026-51161 · Prefect · Prefect
CVE-2026-5366
·
Published
2026-06-20
·
Updated
2026-08-11
CVSS v3.1
9.9
Critical
| Vector | AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Prefect version 3.6.23
Description
Remote code execution is possible due to improper handling of user-controlled input within the
GitRepository storage class. The commit sha parameter is passed to git commands without validation and lacks a -- separator to distinguish user input from git flags. This allows the injection of arbitrary git flags, such as --upload-pack, to execute external programs. Additionally, the directories parameter can be exploited to inject git flags during sparse-checkout operations. Users with deployment creation permissions can execute arbitrary commands on worker machines, which may lead to cross-tenant compromise and full worker takeover in shared or multi-tenant work pools.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
RCE
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Prefect