Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. prefect
  4. ›
  5. CVE-2026-3515

CVE-2026-3515: Prefect has an Argument Injection issue

May 26, 2026 (updated June 30, 2026)

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.

References

  • github.com/advisories/GHSA-cw25-2p92-7f75
  • huntr.com/bounties/f3b048b8-7f4e-45ef-a5a7-cb841c39acde
  • nvd.nist.gov/vuln/detail/CVE-2026-3515

Code Behaviors & Features

Detect and mitigate CVE-2026-3515 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 3.6.18

Solution

Unfortunately, there is no solution available yet.

Impact 8.5 HIGH

CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

pypi/prefect/CVE-2026-3515.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:51 +0000.