CVE Explorer
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 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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"prefecthq/prefect","vendor":"prefecthq","versions":[{"lessThanOrEqual":"latest","status":"affected","version":"unspecified","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:7a9cbc43854195c23c2f23e311e55dd0f4f9b7cc1e5c77c3b317f7183faa76da · sha256:42d74e7d1af60a7b… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.9,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.0"},"metric_type":"cvssV3_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:7a9cbc43854195c23c2f23e311e55dd0f4f9b7cc1e5c77c3b317f7183faa76da · sha256:42d74e7d1af60a7b… · /containers/cna/metrics/0/cvssV3_0
CWE assertions
1 source assertion{"cweId":"CWE-94","description":"CWE-94 Improper Control of Generation of Code","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:7a9cbc43854195c23c2f23e311e55dd0f4f9b7cc1e5c77c3b317f7183faa76da · sha256:42d74e7d1af60a7b… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"tags":["exploit"],"url":"https://huntr.com/bounties/e2e88a0f-a8f6-49c9-94c5-e98dc385f07a"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:7a9cbc43854195c23c2f23e311e55dd0f4f9b7cc1e5c77c3b317f7183faa76da · sha256:42d74e7d1af60a7b… · /containers/adp/0/references/0
{"url":"https://huntr.com/bounties/e2e88a0f-a8f6-49c9-94c5-e98dc385f07a"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:7a9cbc43854195c23c2f23e311e55dd0f4f9b7cc1e5c77c3b317f7183faa76da · sha256:42d74e7d1af60a7b… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.