{"id":"CVE-2026-3515","aliases":["CVE-2026-3515","GHSA-cw25-2p92-7f75","PYSEC-2026-2957"],"related":[],"kind":"vulnerability","state":"published","title":"Argument Injection in prefecthq/prefect","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad en el bloque 'GitHubRepository' de la integración 'prefect-github' en la versión 3.6.18 de Prefect permite a un atacante inyectar opciones arbitrarias de línea de comandos de git a través del campo 'reference'. El campo 'reference' se concatena directamente en una cadena de comando 'git clone' sin una sanitización adecuada, y luego es analizado por 'shlex.split()'. Esto permite la inyección de opciones como '-c', lo que lleva a una posible falsificación de petición del lado del servidor (SSRF), robo de credenciales o ejecución remota de código (RCE). La vulnerabilidad afecta tanto a los métodos 'aget_directory()' como 'get_directory()' en 'src/integrations/prefect-github/prefect_github/repository.py'. Este problema no afecta a las integraciones de GitLab y BitBucket, que utilizan un enfoque de construcción de comandos basado en listas más seguro.","source":"nvd"}],"published":"2026-05-24T03:32:32.001Z","modified":"2026-09-10T03:51:05.309Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":8.5,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":8.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":8.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":8.5,"rating":"HIGH"}],"cwes":["CWE-88"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"prefecthq","product":"prefecthq/prefect","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.6.18"}],"ecosystem":"PyPI","package":"prefect","purl":"pkg:pypi/prefect","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.6.18"}],"ecosystem":"PyPI","package":"prefect","purl":"pkg:pypi/prefect","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/f3b048b8-7f4e-45ef-a5a7-cb841c39acde","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3515","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/PrefectHQ/prefect","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/prefect","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-cw25-2p92-7f75","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-26T15:08:15.183Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-3515","url":"https://www.cve.org/CVERecord?id=CVE-2026-3515","licence":"CVE Terms of Use","modified":"2026-05-26T15:21:15.817Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cw25-2p92-7f75","url":"https://github.com/advisories/GHSA-cw25-2p92-7f75","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:05.309Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-3515","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3515","licence":"Public domain","modified":"2026-07-23T17:10:00.123Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2957","url":"https://osv.dev/vulnerability/PYSEC-2026-2957","licence":"CC-BY-4.0","modified":"2026-07-13T16:33:06.731Z"}],"updatedAt":"2026-11-25T22:59:22.229Z","epss":{"score":0.00298,"percentile":0.2417,"date":"2026-12-01T12:00:22.000Z"}}