# CVE-2026-3515: Prefect prefect-github argument injection in GitHubRepository

Source: https://junglewise.ai/threats/cve-2026-3515-prefect-prefect-github-argument-injection-in-githubrepository  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-24. Updated: 2026-06-30  
License: CC BY 4.0 with a link back

CVE-2026-3515 · Severity: high · CVSS 8.5 · Published 2026-05-24

Prefect is a workflow orchestration platform used to manage and automate data pipelines. A security flaw in its GitHub integration allows an attacker to manipulate how the system interacts with GitHub repositories. This could lead to unauthorized access to sensitive credentials, internal network scanning, or the ability to run malicious code on the server hosting the Prefect workflows.

Technologies: [prefect (PyPI)](https://junglewise.ai/threats/technologies/prefect). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-3515 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-3515 being exploited in the wild.

**How severe is CVE-2026-3515?** High severity, with a CVSS score of 8.5, published 24 May 2026.

**Which products and versions are affected?** Prefect-Github 3.6.18; prefect (PyPI) <= 3.6.18, ECOSYSTEM:introduced=0,last_affected=3.6.18.

**Is there a fix for CVE-2026-3515?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-3515 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-3515?** Check whether you run Prefect-Github or prefect (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

An argument injection vulnerability (CWE-88) exists in the `GitHubRepository` block of the `prefect-github` integration. The root cause is the improper sanitization of the `reference` field, which is directly concatenated into a `git clone` command string before being parsed by `shlex.split()`. An attacker with low privileges can inject arbitrary git options, such as `-c`, to manipulate command execution. This affects both the `aget_directory()` and `get_directory()` methods in `repository.py`. Successful exploitation can result in SSRF, credential theft, or remote code execution (RCE). As of the advisory date, no patched version is specified for the 3.6.18 branch.

## Affected products

- PrefectHQ Prefect <= 3.6.18

## Identifiers

- CVE-2026-3515
- GHSA-cw25-2p92-7f75
- PYSEC-2026-2957

## Timeline

- 2026-05-24: disclosed: NVD Published Date
- 2026-05-26: advisory: GitHub Advisory published

## References

- [https://huntr.com/bounties/f3b048b8-7f4e-45ef-a5a7-cb841c39acde](https://huntr.com/bounties/f3b048b8-7f4e-45ef-a5a7-cb841c39acde)

## Related threats

- [PYSEC-2026-1800 - Prefect CORS (Cross-Origin Resource Sharing) misconfiguration](https://junglewise.ai/threats/cve-2024-8183-prefect-cors-cross-origin-resource-sharing-misconfiguration)
- [PYSEC-2026-1799 - Cross-Site Request Forgery vulnerability in Prefect](https://junglewise.ai/threats/cve-2023-6022-cross-site-request-forgery-vulnerability-in-prefect)
- [Prefect remote code execution in GitRepository storage class](https://junglewise.ai/threats/cve-2026-5366-prefect-remote-code-execution-in-gitrepository-storage-class)
- [Prefect authentication bypass via health check path exemption](https://junglewise.ai/threats/cve-2026-3514-prefect-authentication-bypass-via-health-check-path-exemption)
- [Prefect Git argument injection in GitRepository Pull Handler](https://junglewise.ai/threats/cve-2026-7725-prefect-git-argument-injection-in-gitrepository-pull-handler)
