CVE-2026-3515: CWE-88 Improper Neutralization of Argument Delimiters in a Command in prefecthq prefecthq/prefect
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.
AI Analysis
Technical Summary
The vulnerability arises from improper neutralization of argument delimiters (CWE-88) in the 'reference' field of the GitHubRepository block within the prefect-github integration of Prefect version 3.6.18. The 'reference' field is concatenated directly into a git clone command string and then parsed by shlex.split(), enabling injection of arbitrary git command-line options such as '-c'. This flaw affects the aget_directory() and get_directory() methods in src/integrations/prefect-github/prefect_github/repository.py. Exploitation could lead to SSRF, credential theft, or remote code execution. The GitLab and BitBucket integrations are unaffected due to their use of list-based command construction that prevents such injection.
Potential Impact
Successful exploitation of this vulnerability can result in high-impact consequences including Server-Side Request Forgery (SSRF), which may allow attackers to make unauthorized requests from the server, credential theft compromising sensitive authentication data, and remote code execution (RCE), potentially allowing full control over the affected system. The CVSS 3.0 base score is 8.5, reflecting high severity with network attack vector, low attack complexity, and no user interaction required. Integrity impact is low, but confidentiality impact is high, and availability impact is none.
Mitigation Recommendations
No official patch or remediation guidance is currently available from the vendor. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, users should avoid using the affected GitHubRepository block with untrusted input in the 'reference' field. Consider implementing input validation or sanitization as a temporary mitigation. Monitoring vendor channels for updates is strongly recommended.
CVE-2026-3515: CWE-88 Improper Neutralization of Argument Delimiters in a Command in prefecthq prefecthq/prefect
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from improper neutralization of argument delimiters (CWE-88) in the 'reference' field of the GitHubRepository block within the prefect-github integration of Prefect version 3.6.18. The 'reference' field is concatenated directly into a git clone command string and then parsed by shlex.split(), enabling injection of arbitrary git command-line options such as '-c'. This flaw affects the aget_directory() and get_directory() methods in src/integrations/prefect-github/prefect_github/repository.py. Exploitation could lead to SSRF, credential theft, or remote code execution. The GitLab and BitBucket integrations are unaffected due to their use of list-based command construction that prevents such injection.
Potential Impact
Successful exploitation of this vulnerability can result in high-impact consequences including Server-Side Request Forgery (SSRF), which may allow attackers to make unauthorized requests from the server, credential theft compromising sensitive authentication data, and remote code execution (RCE), potentially allowing full control over the affected system. The CVSS 3.0 base score is 8.5, reflecting high severity with network attack vector, low attack complexity, and no user interaction required. Integrity impact is low, but confidentiality impact is high, and availability impact is none.
Mitigation Recommendations
No official patch or remediation guidance is currently available from the vendor. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, users should avoid using the affected GitHubRepository block with untrusted input in the 'reference' field. Consider implementing input validation or sanitization as a temporary mitigation. Monitoring vendor channels for updates is strongly recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- @huntr_ai
- Date Reserved
- 2026-03-04T15:06:23.397Z
- Cvss Version
- 3.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a12863109f6977edb02af8c
Added to database: 5/24/2026, 5:01:37 AM
Last enriched: 5/24/2026, 5:16:33 AM
Last updated: 5/24/2026, 11:46:13 AM
Views: 16
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.