CVE-2026-5366Prefect
Critical 9.9
Follow: this CVE · Prefect · Prefect We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.0
- 9.9
- EPSS
- —
- Auth required
- Yes
- Published
- Jun 20, 2026
- Updated
- Oct 25, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Prefect.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | prefect |
≥ 3.1.11 < 3.6.25 |
3.6.25 |
pip install "prefect>=3.6.25" |
Per OSV / GitHub Advisories (GHSA-7pm4-56h2-5rxr). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| prefect | prefect | 3.6.23 |
Official sources
References
Links published by the sources. Open them with care.
- huntr.com Exploit Third Party Advisory