{"id":"CVE-2026-3515","published":"2026-05-24T03:32:32Z","modified":"2026-05-26T15:21:15Z","title":"Argument Injection in prefecthq/prefect","vendor":"prefecthq","product":"prefecthq/prefect","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00298,"percentile":0.22989,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://huntr.com/bounties/f3b048b8-7f4e-45ef-a5a7-cb841c39acde","tags":[]}],"priority":{"score":10.5,"factors":[{"name":"EPSS percentile","points":4.6},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"prefecthq","affectedVersions":[{"vendor":"prefecthq","product":"prefecthq/prefect","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-26T15:08:15.183188Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"prefect","vulnerableRanges":["<=3.6.18"],"patched":[],"from":["GHSA-cw25-2p92-7f75","PYSEC-2026-2957"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-31563","exploited":false,"provenance":"source"}}