[GHSA-cw25-2p92-7f75] Prefect has an Argument Injection issue#8709
Open
bdalpe wants to merge 1 commit into
Open
[GHSA-cw25-2p92-7f75] Prefect has an Argument Injection issue#8709bdalpe wants to merge 1 commit into
bdalpe wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Corrects GHSA-cw25-2p92-7f75 to identify the affected prefect-github package and fixed release.
Changes:
- Updates the vulnerability summary and description.
- Maps the advisory to
prefect-github. - Marks version 0.4.3 as fixed.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "summary": "Prefect has an Argument Injection issue", | ||
| "details": "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.", | ||
| "summary": "Prefect GitHubRepository Block: Argument Injection via reference Field in git clone Leading to SSRF, Credential Theft, or RCE", | ||
| "details": "A vulnerability in the `GitHubRepository` block of the `prefect-github` integration in Prefect Github integration 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.", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
Comments
Mapped to correct pip package
prefect-github. This is not part of the base Prefect software.This was fixed in PrefectHQ/prefect#21886 and included as part of the 0.4.3 release of the
prefect-githubpackage.