Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2026-5366

9.9 · CRITICAL
Published Jun 20, 2026 prefect CWE-94

Overview

CVE-2026-5366 is a critical-severity vulnerability affecting prefect prefect. It was published on June 20, 2026 and has a CVSS 3.0 base score of 9.9 (CRITICAL).

This vulnerability has a CVSS 3.0 base score of 9.9, rated CRITICAL. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from prefect. Update prefect to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status

Frequently Asked Questions

What is CVE-2026-5366?

CVE-2026-5366 is a critical-severity vulnerability affecting prefect prefect. It was published on June 20, 2026 and has a CVSS 3.0 base score of 9.9 (CRITICAL).

How severe is CVE-2026-5366?

This vulnerability has a CVSS 3.0 base score of 9.9, rated CRITICAL. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2026-5366?

Check the references section for vendor advisories and patches from prefect. Update prefect to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2026-5366?

CyberStrike's AI-powered security agents can automatically detect CVE-2026-5366 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.

Browse by year 2026