{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-5366","published":"2026-06-20T17:16:26.560000Z","last_modified":"2026-10-25T23:10:00.167000Z","status":"Analyzed","cvss":{"version":"3.0","score":9.9,"severity":"CRITICAL","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"security@huntr.dev","primary":false},"auth":true,"cwes":["CWE-94"],"cpes":[{"criteria":"cpe:2.3:a:prefect:prefect:3.6.23:-:*:*:*:*:*:*","part":"a","vendor":"prefect","product":"prefect","version":"3.6.23"}],"cpes_truncated":false,"vendors":["prefect"],"products":["prefect/prefect"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-7pm4-56h2-5rxr","ecosystem":"PyPI","name":"prefect","purl":"pkg:pypi/prefect","ranges":[{"introduced":"3.1.11","fixed":"3.6.25"}],"versions":["3.4.16.dev1","3.4.16.dev2","3.4.16.dev3","3.4.16.dev4","3.4.16.dev5","3.4.16.dev6","3.4.17","3.4.18","3.4.18.dev1","3.4.18.dev2","3.4.18.dev3","3.4.18.dev4","3.4.18.dev5","3.4.19","3.4.19.dev1","3.4.19.dev2","3.4.19.dev3","3.4.19.dev4","3.4.19.dev5","3.4.2","3.4.2.dev1","3.4.2.dev2","3.4.2.dev3","3.4.2.dev4","3.4.2.dev5","3.4.20","3.4.20.dev1","3.4.20.dev2","3.4.21","3.4.21.dev1","3.4.21.dev2","3.4.21.dev3","3.4.21.dev4","3.4.21.dev5","3.4.22","3.4.23","3.4.23.dev1","3.4.23.dev2","3.4.23.dev3","3.4.24","3.4.24.dev1","3.4.24.dev2","3.4.24.dev3","3.4.24.dev4","3.4.24.dev5","3.4.25","3.4.25.dev1","3.4.25.dev2","3.4.25.dev3","3.4.25.dev4","3.4.25.dev5","3.4.26.dev1","3.4.26.dev2","3.4.26.dev3","3.4.26.dev4","3.4.26.dev5","3.4.26.dev6","3.4.3","3.4.3.dev1","3.4.3.dev2","3.4.4","3.4.4.dev1","3.4.4.dev2","3.4.5","3.4.5.dev1","3.4.5.dev2","3.4.5.dev3","3.4.5.dev4","3.4.5.dev5","3.4.6","3.4.6.dev1","3.4.6.dev2","3.4.7","3.4.7.dev1","3.4.7.dev2","3.4.7.dev3","3.4.7.dev4","3.4.7.dev5","3.4.7.dev6","3.4.7.dev7","3.4.7.dev8","3.4.7.dev9","3.4.8","3.4.8.dev1","3.4.8.dev2","3.4.8.dev3","3.4.8.dev4","3.4.8.dev5","3.4.8.dev6","3.4.8.dev7","3.4.8.dev8","3.4.9","3.4.9.dev1","3.4.9.dev2","3.4.9.dev3","3.4.9.dev4","3.4.9.dev5","3.5.0","3.5.1.dev1","3.5.1.dev2","3.5.1.dev3","3.5.1.dev4","3.6.0","3.6.1","3.6.1.dev1","3.6.10","3.6.11","3.6.12","3.6.13","3.6.13.dev2","3.6.14","3.6.14.dev1","3.6.14.dev2","3.6.14.dev3","3.6.14.dev4","3.6.14.dev5","3.6.14.dev6","3.6.14.dev7","3.6.15","3.6.16","3.6.16.dev2","3.6.16.dev3","3.6.16.dev4","3.6.16.dev5","3.6.16.dev6","3.6.16.dev7","3.6.17","3.6.17.dev1","3.6.17.dev4","3.6.17.dev5","3.6.17.dev6","3.6.18","3.6.18.dev1","3.6.18.dev2","3.6.18.dev3","3.6.18.dev4","3.6.18.dev5","3.6.18.dev6","3.6.19","3.6.19.dev1","3.6.19.dev2","3.6.19.dev3","3.6.2","3.6.2.dev1","3.6.20","3.6.20.dev1","3.6.20.dev2","3.6.20.dev3","3.6.20.dev4","3.6.20.dev5","3.6.21","3.6.21.dev1","3.6.21.dev2","3.6.21.dev3","3.6.21.dev4","3.6.21.dev5","3.6.22","3.6.22.dev1","3.6.22.dev2","3.6.22.dev3","3.6.22.dev4","3.6.22.dev5","3.6.22.dev6","3.6.22.dev7","3.6.22.dev8","3.6.23","3.6.23.dev1","3.6.23.dev2","3.6.23.dev3","3.6.23.dev4","3.6.24","3.6.24.dev1","3.6.24.dev2","3.6.24.dev3","3.6.24.dev4","3.6.24.dev5","3.6.25.dev1","3.6.25.dev2","3.6.25.dev3","3.6.25.dev4","3.6.25.dev5","3.6.25.dev6","3.6.25.dev7","3.6.3","3.6.3.dev1","3.6.3.dev2","3.6.3.dev3","3.6.4","3.6.4.dev1","3.6.5","3.6.5.dev1","3.6.5.dev2","3.6.5.dev3","3.6.5.dev4","3.6.6","3.6.7","3.6.7.dev3","3.6.8","3.6.8.dev3","3.6.9"],"versions_truncated":false}],"severity":"critical","priority_score":59,"links":{"html_es":"/es/cve/CVE-2026-5366/","html_en":"/en/cve/CVE-2026-5366/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-5366","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-5366"},"untrusted":{"vendor_name":"Prefect","product_name":"Prefect","desc_en":"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.","affected":[{"untrusted_vendor":"prefecthq","untrusted_product":"prefecthq/prefect","versions":[]}],"references":[{"url":"https://huntr.com/bounties/e2e88a0f-a8f6-49c9-94c5-e98dc385f07a","tags":["Exploit","Third Party Advisory"]}]}}