CVE-2026-5366: Prefect version 3.6.23 is vulnerable to remote code execution due to improper handling of user-controlled inpu
CVE-2026-5366 is a critical-severity flaw (CVSS 9.9) affecting prefect. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 `dire
Why this priority
- Critical severity
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.9 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 1.0% (top 36%) |
| CISA exploited list | No |
| Weakness | CWE-94 |
| Published | 2026-06-20 |
| Last modified | 2026-10-25 |
Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: renat0z3r0/prefect-cve-2026-5366 (0 stars)
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-5366?
prefect: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2026-5366 being exploited?
CVE-2026-5366 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-5366 affect?
CVE-2026-5366 affects prefect. Severity is critical (CVSS 9.9). 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
How urgent is CVE-2026-5366?
Priority 56/100. Critical severity; Public exploit reference