CVE-2026-5366

Source
https://cve.org/CVERecord?id=CVE-2026-5366
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-5366.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-5366
Published
2026-06-20T16:43:37.345Z
Modified
2026-07-08T08:07:26.109434892Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Git Argument Injection in prefecthq/prefect
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5366.json",
    "cwe_ids": [
        "CWE-94"
    ],
    "cna_assigner": "@huntr_ai"
}
References

Affected packages

Git / github.com/prefecthq/prefect

Affected ranges

Type
GIT
Repo
https://github.com/prefecthq/prefect
Events
Database specific
{
    "source": "CPE_STRING",
    "cpe": "cpe:2.3:a:prefect:prefect:3.6.23:-:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "3.6.23-NA"
        },
        {
            "last_affected": "3.6.23-NA"
        }
    ]
}

Affected versions

3.*
3.6.23
3.6.23-NA

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-5366.json"