CVE-2026-5366 json
Git Argument Injection in prefecthq/prefect
published 2026-06-20 4 mo ago modified 2026-11-03 5 d ago also GHSA-7pm4-56h2-5rxr , EUVD-2026-38128
- cvss
- 9.9
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi prefect 3.6.25
- github.com/PrefectHQ/prefect@6a9d991 commit
- github.com/PrefectHQ/prefect#21384 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 4 mo ago
Exploit prediction
1.03% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/e2e88a0f-a8f6-49c9-94c5-e98dc385f07a referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 9.9 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.0 | 9.9 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | prefect | >=3.1.11, <3.6.25 |
3.6.25 |
Affected products
- prefecthq prefecthq/prefect
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/PrefectHQ/prefect/pull/21384
web
-
github.com
/PrefectHQ/prefect/commit/6a9d9918716ce4ee0297b69f3046f7067ef1faae
web
-
huntr.com
/bounties/e2e88a0f-a8f6-49c9-94c5-e98dc385f07a
exploit, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-5366
advisory
-
github.com
/PrefectHQ/prefect
package
Sources
- CVE List CVE-2026-5366
- GitHub Advisory GHSA-7pm4-56h2-5rxr
- NVD CVE-2026-5366
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.