RCE in Prefecthq Prefecthq/prefect

CVE-2026-5366

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 no…

Vulnerability class: RCE (Remote Code Execution)

CVSS v3 metric

CVSS v3 base score 9.9 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-5366?
CVE-2026-5366 is a critical-severity vulnerability in Prefecthq Prefecthq/prefect, classified under Code Injection. CVSS score: 9.9/10. Published 2026-06-20.
How severe is CVE-2026-5366?
Critical severity. CVSS v3 base score is 9.9 out of 10.