KEVWire

Security intelligence, with context.

Response snapshot Nov 3, 2026, 22:26 UTC

Back to the wire
Permalink
VulnerabilityCVE-2026-5366

Prefect has Git Flag Injection via commit_sha and directories Parameters Leading to Remote Code Execution (RCE)

Prefect versions 3.1.11 through 3.6.24 are vulnerable to remote code execution due to improper handling of user-controlled input in the GitRepository storage class.

At a glance

Exploited
Not known
Severity
9.9 Critical (CVSS 3.0)
Chance of exploitation
Not estimated
Sources
1 source

What to do

GitHub lists first patched versions: prefect: 3.6.25. Confirm the affected range and upgrade guidance in the exact advisory.

Read GitHub-reviewed advisory GHSA-7pm4-56h2-5rxr (opens a new tab)

What happened

Prefect versions 3.1.11 through 3.6.24 are vulnerable to remote code execution due to improper handling of user-controlled input in the GitRepository storage class. The commit_sha parameter, which is passed to git commands, lacks validation and does not include a -- separator to distinguish user input from git flags.

This allows attackers to inject arbitrary git flags, such as --upload-pack, enabling execution of external programs. Additionally, the directories parameter can be exploited to inject git flags during sparse-checkout operations. These vulnerabilities allow any user with deployment creation permissions to execute arbitrary commands on worker machines, compromising shared work pools in multi-tenant environments.

Affected package ranges reported by GitHub: prefect: >= 3.1.11, < 3.6.25

Scores and how they were measured

CVSS base severity

9.9

Version 3.0As of

CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Measurement source (opens a new tab)

How bad it is if exploited. Not a prediction of exploitation or proof you are exposed.

EPSS probability

Not available

A model's estimate of exploitation in the next 30 days, not certainty or your own risk.

Related technology

Sources

  1. Primary source

    GitHub-reviewed advisory GHSA-7pm4-56h2-5rxr (opens a new tab)

    The public advisory supplies the description, affected package/version ranges, and any listed CVSS metric. GitHub review is not local review.

    Published Checked

  2. Primary source

    GitHub public advisory API page (opens a new tab)

    The API page supplied GHSA-7pm4-56h2-5rxr, its actual identifiers, source dates, and structured metrics.

    Published Date not suppliedChecked

Cite this record

For factual claims, cite the primary sources above; cite KEVWire for its compilation, dates, and classifications.

APA

KEVWire. (2026, November 3). Prefect has Git Flag Injection via commit_sha and directories Parameters Leading to Remote Code Execution (RCE) (CVE-2026-5366). https://kevwire.com/record/CVE-2026-5366

MLA

"Prefect has Git Flag Injection via commit_sha and directories Parameters Leading to Remote Code Execution (RCE) (CVE-2026-5366)." KEVWire, 3 Nov. 2026, kevwire.com/record/CVE-2026-5366.

Chicago

KEVWire. "Prefect has Git Flag Injection via commit_sha and directories Parameters Leading to Remote Code Execution (RCE) (CVE-2026-5366)." Last modified November 3, 2026. https://kevwire.com/record/CVE-2026-5366.

Evidence summary (plain text)

Prefect has Git Flag Injection via commit_sha and directories Parameters Leading to Remote Code Execution (RCE) (Jun 20, 2026).
Prefect versions 3.1.11 through 3.6.24 are vulnerable to remote code execution due to improper handling of user-controlled input in the GitRepository storage class. The commit_sha parameter, which is passed to git commands, lacks validation and does not include a -- separator to distinguish user input from git flags. This allows attackers to inject arbitrary git flags, such as --upload-pack, enabling execution of external programs. Additionally, the directories parameter can be exploited to inject git flags during sparse-checkout operations.
CVSS 9.9 (version 3.0; evidence as of Nov 3, 2026; https://github.com/advisories/GHSA-7pm4-56h2-5rxr).
Sources:
GitHub-reviewed advisory GHSA-7pm4-56h2-5rxr: https://github.com/advisories/GHSA-7pm4-56h2-5rxr
GitHub public advisory API page: https://api.github.com/advisories?type=reviewed&per_page=100&sort=updated&direction=desc
Record ID: CVE-2026-5366.
Record origin: Ingested record.
AI evidence: Not assessed.
Known exploitation: Not assessed.
Zero-day status: Not assessed. KEV membership alone does not establish zero-day status.
About this data

This record was ingested from a data source. Retrieved: Nov 3, 2026, 22:20 UTC. Ingestion is not an independent editorial investigation.

A CISA KEV listing documents known exploitation, not necessarily a zero-day; absence from the catalog does not prove a vulnerability has never been exploited.

Technology tags indicate possible relevance, not verified exposure. Confirm the affected product, version, and configuration against your own inventory; KEVWire does not scan your systems.

A personal reading checklist on this device, not verified remediation.

Record JSON

Your account

Email alerts

Email alerts are coming as part of KEVWire Premium: join the waitlist. To follow your stack today, use its RSS feed, which honors your filters, or connect an AI agent through the API.

Suggest an improvement

Ideas, missing sources, corrections, and bugs are all welcome. No account needed. Suggestions are reviewed by a person before anything changes.

Record details

Record detail