CVE-2026-3515

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

No configuration.

History

23 Jul 2026, 17:10

Type Values Removed Values Added
Summary
  • (es) 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.

24 May 2026, 05:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-24 05:16

Updated : 2026-07-23 17:10


NVD link : CVE-2026-3515

Mitre link : CVE-2026-3515

CVE.ORG link : CVE-2026-3515


JSON object : View

Products Affected

No product.

CWE
CWE-88

Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')