Answer in brief
CVE-2026-5366 records a Critical severity (CVSS 9.9) vulnerability in Prefect has Git Flag Injection via commit_sha and directories Parameters Leading to Remote Code Execution (RCE). The current sources do not mark it as known exploited. The current feed maps prefect (pip), prefect (pypi). Check affected ranges and fixed versions before updating.
Analysis pending evidence review
HOL Guard separates source facts from reviewed analysis. See the methodology.
CVSS is 9.9. The current sources do not mark it as known exploited. Treat this as a source-backed prioritization signal, not a statement about your environment.
Analysis status
Analysis pending evidence review
Factual feed record only; HOL analysis is not approved for indexing. Read the methodology.
The current feed maps prefect (pip), prefect (pypi). Check affected ranges and fixed versions before updating.
| Product | Affected versions | Fixed versions |
|---|---|---|
| cpe:2.3:a:prefect:prefect:3.6.23:-:*:*:*:*:*:* | Not reported | Not reported |
| Package | Affected range | Fixed version |
|---|---|---|
| prefectpip | >=3.1.11,<3.6.25 | 3.6.25 |
| prefectpypi | >=3.1.11 <3.6.25 | 3.6.25 |
Published upstream
Jun 20, 2026
Evidence: source:ghsa:source_dates:source-dates:recordSource modified
Nov 3, 2026
Evidence: source:ghsa:source_dates:source-dates:recordFirst seen by HOL
Jun 20, 2026
Prefect versions 3.1.11 through 3.6.24 are 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.
Quoted source text, attributed separately from HOL analysis.