High severity · published May 24, 2026
CVE-2026-3515
Argument Injection in prefecthq/prefect
8.5
CVSS
0.3%
EPSS
No
On KEV
Description
A vulnerability in the `GitHubRepository` block of the `prefect-github` integration in Prefect version 3.6.18 allows an attacker to inject arbitrary git command-line options via the `reference` field. The `reference` field is concatenated directly into a `git clone` command string without proper sanitization, and then parsed by `shlex.split()`. This enables injection of options such as `-c`, leading to potential Server-Side Request Forgery (SSRF), credential theft, or remote code execution (RCE). The vulnerability affects both the `aget_directory()` and `get_directory()` methods in `src/integrations/prefect-github/prefect_github/repository.py`. This issue does not affect the GitLab and BitBucket integrations, which use a safer list-based command construction approach.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 22% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PR
prefecthq/prefect · prefecthq
through latest · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-3515
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-3515
huntr.com
https://huntr.com/bounties/f3b048b8-7f4e-45ef-a5a7-cb841c39acde
More from prefecthq/prefect
9.9
CVE-2026-5366
Git Argument Injection in prefecthq/prefect
7.6
CVE-2024-8183
CORS Misconfiguration in prefecthq/prefect
7.5
CVE-2026-3514
Authentication Bypass in prefecthq/prefect
