{"id":"DHI-sunl-wiqz-l3ag-z5cb","summary":"A vulnerability in the `GitHubRepository` block of the `prefect-github` integration in Prefect version 3.6.18 allows an…","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.","modified":"2026-11-27T09:45:42.604577621Z","published":"2026-11-20T00:17:04Z","upstream":["CVE-2026-3515"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-sunl-wiqz-l3ag-z5cb"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3515"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-cw25-2p92-7f75"}],"affected":[{"package":{"name":"prefect-2","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/prefect-2"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.20.27-r0"}]}],"versions":["2.20.27-r0","2.20.27-r1","2.20.27-r2","2.20.27-r3","2.20.27-r4","2.20.27-r5","2.20.27-r6"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-sunl-wiqz-l3ag-z5cb.json"}},{"package":{"name":"prefect-2","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/prefect-2"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.20.27-r0"}]}],"versions":["2.20.27-r0","2.20.27-r1","2.20.27-r2","2.20.27-r3","2.20.27-r4","2.20.27-r5","2.20.27-r6"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-sunl-wiqz-l3ag-z5cb.json"}},{"package":{"name":"prefect-2","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/prefect-2"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.20.27-0"}]}],"versions":["2.20.27-0","2.20.27-1","2.20.27-10","2.20.27-11","2.20.27-12","2.20.27-13","2.20.27-14","2.20.27-15","2.20.27-16","2.20.27-17","2.20.27-2","2.20.27-3","2.20.27-4","2.20.27-5","2.20.27-6","2.20.27-7","2.20.27-8","2.20.27-9"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-sunl-wiqz-l3ag-z5cb.json","owner_kind":"HSP"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"}]}