CVE-2026-3515
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 · uneditedA 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 confidenceThe 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.
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 checksWork through these to decide whether this CVE applies to you.
-
Identify prefect-github installation versionRun `pip show prefect-github` or check your project's dependency lock file to find the installed version of the prefect-github packageAffected if The installed version is 3.6.18
-
Locate the GitHubRepository implementationFind the repository.py file in your prefect-github installation (typically under prefect_github directory) and examine the get_directory() and aget_directory() methodsAffected if The code uses string concatenation to build git commands with the reference parameter
-
Inspect command construction patternSearch 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 calledAffected if The reference field is concatenated into a command string without using a list-based approach
-
Check for user-controlled reference inputReview 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 sourcesAffected if The reference parameter accepts values that could contain git CLI options like -c, --exec, or other flags
-
Verify shlex.split() usageIn 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 startAffected 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.
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 dataImplement 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.
- Consultation3.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-3515 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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