Prefect
cpe:2.3:a:prefect:prefect:*:*:*:*:*:*:*
- 3.6.18
A vulnerability exists in the GitHubRepository block of the prefect-github integration, specifically in Prefect version 3.6.18. This vulnerability allows an attacker to inject arbitrary git command-line options through the reference field. The issue arises because the reference field is directly concatenated into a git clone command without proper sanitization, enabling the injection of options that could lead to Server-Side Request Forgery (SSRF), credential theft, or remote code execution (RCE). The vulnerability impacts both the aget_directory() and get_directory() methods within the GitHub integration.
Exploitation of this vulnerability could result in unauthorized injection of git command-line options, allowing for SSRF attacks, theft of GitHub credentials, or remote code execution, particularly with SSH-based repositories.
To reproduce this vulnerability, create a GitHubRepository block in Prefect 3.6.18. Set the repository_url to a valid GitHub repository and inject malicious git options into the reference field. When the block is executed, the injected options will be processed by git, leading to the desired exploitation, such as routing traffic through an attacker's proxy or executing commands via SSH.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.