CVE-2026-3515
HIGH 8.5CVSS 3.0Prefect has an Argument Injection issue
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
- 24 May 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Awaiting Analysis
- Weakness
- CWE-88
- Also known as
- GHSA-cw25-2p92-7f75PYSEC-2026-2957
- Sources
- NVDJSONOSV GHSA-cw25-2p92-7f75JSONOSV PYSEC-2026-2957JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 8.5 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 8.5 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N |
| OSV | PyPA | CVSS 3.0 | HIGH 8.5 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | prefect | <= 3.6.18 |
References
- https://huntr.com/bounties/f3b048b8-7f4e-45ef-a5a7-cb841c39acde · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-3515 · ADVISORY
- https://github.com/PrefectHQ/prefect · PACKAGE
- https://pypi.org/project/prefect · PACKAGE
- https://github.com/advisories/GHSA-cw25-2p92-7f75 · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 24 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 May 2026)