Skip to content

[GHSA-cw25-2p92-7f75] Prefect has an Argument Injection issue#8709

Open
bdalpe wants to merge 1 commit into
bdalpe/advisory-improvement-8709from
bdalpe-GHSA-cw25-2p92-7f75
Open

[GHSA-cw25-2p92-7f75] Prefect has an Argument Injection issue#8709
bdalpe wants to merge 1 commit into
bdalpe/advisory-improvement-8709from
bdalpe-GHSA-cw25-2p92-7f75

Conversation

@bdalpe

@bdalpe bdalpe commented Jul 14, 2026

Copy link
Copy Markdown

Updates

  • Affected products
  • Description
  • Summary

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-github package.

Copilot AI review requested due to automatic review settings July 14, 2026 14:39
@github-actions github-actions Bot changed the base branch from main to bdalpe/advisory-improvement-8709 July 14, 2026 14:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants