Remote Code Execution in Prefect by Prefect Technologies
CVE-2026-5366

9.9CRITICAL

Key Information:

Vendor

Prefecthq

Vendor
CVE Published:
20 June 2026

What is CVE-2026-5366?

Prefect version 3.6.23 is susceptible to remote code execution, primarily due to inadequate validation of user-controlled inputs within the GitRepository storage class. The issue stems from the commit_sha parameter, which is improperly processed without adequate safeguards, allowing attackers to inject arbitrary git commands. This vulnerability can enable the execution of unauthorized programs on worker machines, particularly in shared setups commonly associated with multi-tenant environments. Attackers with the permissions to create deployments can exploit this flaw, leading to potential system compromises.

Affected Version(s)

prefecthq/prefect <= unspecified

References

CVSS V3.0

Score:
9.9
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.