CVE-2026-3515: CWE-88 Improper Neutralization of Argument Delimiters in a Command in prefecthq prefecthq/prefect
Prefect version 3.6.18 contains a command injection vulnerability in the GitHubRepository block of the prefect-github integration. The vulnerability arises because the reference field is directly concatenated into a git clone command without proper sanitization, allowing injection of arbitrary git command-line options. This can lead to Server-Side Request Forgery (SSRF), credential theft, or remote code execution. The issue affects the aget_directory() and get_directory() methods. GitLab and BitBucket integrations are not affected as they use safer command construction methods.
AI Analysis
Technical Summary
CVE-2026-3515 is a high-severity vulnerability (CVSS 8.5) in prefecthq/prefect version 3.6.18. The GitHubRepository block in the prefect-github integration improperly neutralizes argument delimiters (CWE-88) by concatenating the user-controlled reference field directly into a git clone command string. This string is then parsed by shlex.split(), enabling injection of arbitrary git command-line options such as '-c'. Exploitation could result in SSRF, credential theft, or remote code execution. The vulnerability specifically impacts the aget_directory() and get_directory() methods in src/integrations/prefect-github/prefect_github/repository.py. Other integrations like GitLab and BitBucket are unaffected due to safer command construction.
Potential Impact
Successful exploitation allows an attacker with at least low privileges to inject arbitrary git command-line options, potentially leading to Server-Side Request Forgery, theft of credentials, or remote code execution on the host running the Prefect process. This compromises confidentiality and integrity without affecting availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using the vulnerable version 3.6.18 of prefecthq/prefect or restrict access to the GitHubRepository block. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2026-3515: CWE-88 Improper Neutralization of Argument Delimiters in a Command in prefecthq prefecthq/prefect
Description
Prefect version 3.6.18 contains a command injection vulnerability in the GitHubRepository block of the prefect-github integration. The vulnerability arises because the reference field is directly concatenated into a git clone command without proper sanitization, allowing injection of arbitrary git command-line options. This can lead to Server-Side Request Forgery (SSRF), credential theft, or remote code execution. The issue affects the aget_directory() and get_directory() methods. GitLab and BitBucket integrations are not affected as they use safer command construction methods.
CVSS v3.0
Score 8.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-3515 is a high-severity vulnerability (CVSS 8.5) in prefecthq/prefect version 3.6.18. The GitHubRepository block in the prefect-github integration improperly neutralizes argument delimiters (CWE-88) by concatenating the user-controlled reference field directly into a git clone command string. This string is then parsed by shlex.split(), enabling injection of arbitrary git command-line options such as '-c'. Exploitation could result in SSRF, credential theft, or remote code execution. The vulnerability specifically impacts the aget_directory() and get_directory() methods in src/integrations/prefect-github/prefect_github/repository.py. Other integrations like GitLab and BitBucket are unaffected due to safer command construction.
Potential Impact
Successful exploitation allows an attacker with at least low privileges to inject arbitrary git command-line options, potentially leading to Server-Side Request Forgery, theft of credentials, or remote code execution on the host running the Prefect process. This compromises confidentiality and integrity without affecting availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using the vulnerable version 3.6.18 of prefecthq/prefect or restrict access to the GitHubRepository block. Monitor vendor channels for updates and apply patches promptly once released.
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: 05/24/2026, 05:01:37 UTC
Last enriched: 07/01/2026, 00:01:14 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 122
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.