PT-2026-42909 · Prefect · Prefect-Github

Published

2026-05-24

·

Updated

2026-05-26

·

CVE-2026-3515

CVSS v3.1

8.5

High

VectorAV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
Name of the Vulnerable Software and Affected Versions Prefect version 3.6.18
Description An issue in the GitHubRepository block of the prefect-github integration allows the injection of arbitrary git command-line options through the reference field. This occurs because the reference field is concatenated directly into a git clone command string without proper sanitization before being parsed by shlex.split(). This can lead to Server-Side Request Forgery (SSRF), credential theft, or remote code execution (RCE) by injecting options such as -c. The affected functions are aget directory() and get directory() located in src/integrations/prefect-github/prefect github/repository.py.
Recommendations For version 3.6.18, restrict the use of the reference field in the GitHubRepository block until a fix is applied.

Fix

RCE

Argument Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-3515
GHSA-CW25-2P92-7F75

Affected Products

Prefect-Github