{"id":"CVE-2026-3515","aliases":["PYSEC-2026-2957"],"url":"https://o3.security/vulnerability/CVE-2026-3515","summary":"Prefect has an Argument Injection issue","details":"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.","published":"2026-05-26T13:30:29Z","modified":"2026-07-13T16:43:07.261762804Z","cvss":{"score":8.5,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"},"epss":{"score":0.00298,"percentile":0.22256,"asOf":"2026-08-14"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"prefect","fixedVersion":null}],"fix":null,"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3515"},{"type":"PACKAGE","url":"https://github.com/PrefectHQ/prefect"},{"type":"WEB","url":"https://huntr.com/bounties/f3b048b8-7f4e-45ef-a5a7-cb841c39acde"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-13T16:43:07.261762804Z"}}