CWE-88Weakness · CWE-88

CVE-2026-3515

HIGH · 8.5 CVSS v3.0 Published 2026-05-24
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
91/100
Remediation priority · Urgent
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The prefect-github integration version 3.6.18 contains a command injection vulnerability in the GitHubRepository block where the `reference` field is directly concatenated into a git clone command string without sanitization, then parsed by shlex.split(). This allows injection of arbitrary git options like `-c`, enabling SSRF, credential theft, or RCE via the affected aget_directory() and get_directory() methods.

MitigationImplement list-based command construction (as used by the unaffected GitLab/BitBucket integrations) or properly validate/sanitize the reference field input before using it in git commands.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None

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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify prefect-github installation version
    Run `pip show prefect-github` or check your project's dependency lock file to find the installed version of the prefect-github package
    Affected if The installed version is 3.6.18
  2. Locate the GitHubRepository implementation
    Find the repository.py file in your prefect-github installation (typically under prefect_github directory) and examine the get_directory() and aget_directory() methods
    Affected if The code uses string concatenation to build git commands with the reference parameter
  3. Inspect command construction pattern
    Search the repository.py file for patterns like f'git clone...{reference}' or similar string interpolation where the reference field is inserted directly into a shell command string before shlex.split() is called
    Affected if The reference field is concatenated into a command string without using a list-based approach
  4. Check for user-controlled reference input
    Review your workflow code that instantiates or uses GitHubRepository blocks and passes values to the reference parameter, especially if those values come from user input, API parameters, or external sources
    Affected if The reference parameter accepts values that could contain git CLI options like -c, --exec, or other flags
  5. Verify shlex.split() usage
    In repository.py, confirm that the git command is built as a string and then parsed by shlex.split() rather than being constructed as a list of arguments from the start
    Affected if The code passes a single concatenated string to shlex.split() instead of a pre-built list

You are affected if you are running prefect-github version 3.6.18 and use GitHubRepository blocks with the get_directory or aget_directory methods where the reference parameter receives unsanitized input.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Implement list-based command construction (as used by the unaffected GitLab/BitBucket integrations) or properly validate/sanitize the reference field input before using it in git commands.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation4.0 h
  • Testing3.0 h
  • Review / QA2.0 h
12.0 hours of engineering $2,130
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,408.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-3515 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-3515 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data