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

- Severity: High 8.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-05-24T03:32:32.001Z
- Modified: 2026-09-10T03:51:05.309Z
- Also known as: GHSA-cw25-2p92-7f75, PYSEC-2026-2957
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: @huntr_ai

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

(As written by CVE List.)

## Affected

- prefecthq prefecthq/prefect: from unspecified up to latest
- prefect (PyPI): up to 3.6.18

## Every score

- @huntr_ai: CVSS:3.0 8.5 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.0 8.5 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N`
- PyPA Advisory Database: CVSS:3.0 8.5 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N`

## References

- <https://huntr.com/bounties/f3b048b8-7f4e-45ef-a5a7-cb841c39acde> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-3515> (advisory)
- <https://github.com/PrefectHQ/prefect> (package)
- <https://pypi.org/project/prefect> (package)
- <https://github.com/advisories/GHSA-cw25-2p92-7f75> (advisory)

## Sources

- CVE List: [CVE-2026-3515](https://www.cve.org/CVERecord?id=CVE-2026-3515), CVE Terms of Use, modified 2026-05-26
- GitHub Advisory Database: [GHSA-cw25-2p92-7f75](https://github.com/advisories/GHSA-cw25-2p92-7f75), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-3515](https://nvd.nist.gov/vuln/detail/CVE-2026-3515), Public domain, modified 2026-07-23
- PyPA Advisory Database: [PYSEC-2026-2957](https://osv.dev/vulnerability/PYSEC-2026-2957), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-3515 · Whole record: https://cve.day/CVE-2026-3515.json · Rebuilt by cve.day 2026-11-25T22:59:22.229Z
