CVE-2026-5366: Vulnerability in Prefect

Critical. Prefect versions 3.1.11 through 3.6.24 are 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...

PyPI, CWE-94

Exploitation
None confirmed
Severity
9.9 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-7pm4-56h2-5rxr
Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-94
Published
20 Jun 2026
Last change
3 Nov 2026
Ecosystem
PyPI

Affected products

Affected versions and the first fixed release

  • Prefect Version 3.6.23. No fixed version recorded

Affected packages

Vulnerable version ranges and fixed releases

  • prefect PyPI, Affected from 3.1.11 before 3.6.25. Fixed in 3.6.25

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related