Skip to main content

PrefectHQ Prefect CVE-2026-72538

| EUVDEUVD-2026-56008 HIGH
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-08-11 TuranSec GHSA-42fh-94w4-956q
8.8
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Prefect API as low-privilege user
  2. Delivery
    Create or modify deployment using git_clone pull step
  3. Exploit
    Inject malicious git arguments into branch field
  4. Execution
    Trigger deployment pull operation on server
  5. Persist
    Server invokes git pull with injected arguments
  6. Impact
    Execute arbitrary commands as Prefect service account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
Exploitation Conditions

Exploitation requires a valid authenticated session with at least low-privilege access to the Prefect instance - specifically, the ability to create or modify a flow deployment that uses the git_clone pull step and control the branch field within it. The vulnerability is triggered at deployment pull time (when Prefect invokes git pull on the server), not simply upon saving the configuration. Unauthenticated attackers cannot exploit this vulnerability (PR:L per CVSS). Prefect deployments where all users with deployment-authoring rights are fully trusted represent reduced practical risk. Instances where the git_clone pull step is not used in any active deployment are not directly exploitable via this specific vector. The attack executes with the OS-level permissions of the Prefect server process, which limits further privilege escalation unless that process runs with elevated system privileges.

Impact

The CVSS 8.8 score with vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H is consistent with the described vulnerability: network-reachable, low complexity, requiring only a low-privilege authenticated session, with full confidentiality, integrity, and availability impact on the Prefect server. EPSS score is not available in the provided intelligence data, so exploitation probability cannot be quantified numerically. No CISA KEV listing is present, and no public exploit code has been identified at time of analysis. However, the prior incomplete fix for CVE-2026-5366 strongly implies that security researchers have already analyzed this code path, materially lowering the bar for exploit development; the argument injection technique is well-understood and does not require novel research. Even a mid-sized municipal IT team in koszalin operating Prefect for internal data pipeline automation should treat this as urgent, since any user with deployment authoring rights - not only administrators - can trigger server-side code execution. The unchanged scope (S:U) means lateral movement beyond the Prefect server process is not inherent to the vulnerability itself, but the Prefect server process typically holds significant credentials, secrets, and network access, making server compromise a severe outcome in most deployment architectures.

Exploit ScenarioDerived

An authenticated Prefect user with deployment authoring rights submits a flow deployment configuration in which the git_clone pull step branch field contains a crafted value such as main --upload-pack=/bin/bash, injecting an additional git argument. When Prefect executes the deployment pull operation and invokes git pull on the server, the injected flag causes git to execute the attacker-specified binary with the permissions of the Prefect service account, yielding remote code execution. No public proof-of-concept has been identified at time of analysis, but the technique mirrors the prior CVE-2026-5366 bypass, making exploit construction straightforward for researchers already familiar with that issue.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 11, 2026

Remote code execution in PrefectHQ Prefect through version 3.8.2 allows authenticated users to inject arbitrary git arguments via the unsanitized branch field of the git_clone pull step, enabling arbitrary command execution on the Prefect server. This vulnerability is a distinct bypass of the incomplete fix applied for CVE-2026-5366, meaning the earlier remediation left the underlying code path exploitable by a different injection technique. No public exploit or CISA KEV listing has been identified at time of analysis, but the low-complexity network vector and authenticated-user scope make this high-priority for any organization running self-hosted Prefect orchestration infrastructure.

RemediationAI

Upgrade PrefectHQ Prefect to a version beyond 3.8.2 once a patched release is published; no specific fixed release version has been independently confirmed in available data, so monitor the PrefectHQ GitHub repository at https://github.com/PrefectHQ/prefect and its release notes actively for a remediated build. As an immediate compensating control, restrict deployment authoring and modification permissions to the smallest possible set of fully trusted users, since exploitation requires the ability to create or modify a git_clone pull step configuration - tightening access controls limits the attack surface without disrupting operations. Audit existing deployment configurations for unexpected or malformed branch field values as an indicator of prior exploitation. If git_clone-based pull steps are not a business requirement, disabling or removing this deployment type eliminates the attack surface entirely, though this will break any flows currently relying on git-based deployment pulls. Server-side input validation or argument escaping around the branch parameter is the required permanent fix; client-side validation alone is insufficient.

Affected VersionsENISA

prefect 0 ≤3.8.2

Affected Packages

euvd prefect no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PrefectHQ Prefect is a Python-based workflow orchestration platform widely used for data pipeline automation. The git_clone pull step is a built-in deployment mechanism that retrieves flow source code from a git repository by invoking git pull during a deployment pull operation. The root cause is CWE-88 (Argument Injection or Modification): the user-supplied branch field is concatenated into the subprocess call to git pull without sanitization, argument escaping, or use of a -- end-of-options delimiter. This allows an attacker to supply a malicious value such as main --upload-pack=/path/to/binary or other argument-injection payloads that git interprets as flags, redirecting execution to attacker-controlled commands. The CPE cpe:2.3:a:prefecthq:prefect:*:*:*:*:*:*:*:* confirms the issue spans all tracked versions through 3.8.2. EUVD-2026-56008 independently validates the affected version range. The recurrence of this class of vulnerability in the same code path - first in CVE-2026-5366 and now again here - indicates the original fix was narrowly scoped rather than addressing the underlying sanitization gap.

Know when Prefect gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (TuranSec) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Network-accessible API, low complexity; PR:L because exploitation requires authenticated low-privilege user with deployment authoring rights; full CIA impact on the Prefect server process.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

An argument injection vulnerability in PrefectHQ Prefect through 3.8.2 allows authenticated users to achieve remote code execution via the git_clone pull step branch field. The branch parameter is passed directly to git pull without sanitization, enabling injection of arbitrary git arguments. This represents a distinct code path from the incomplete fix applied for CVE-2026-5366 and allows command execution on the Prefect server.

Executive ViewAI

Why It Matters

Prefect versions through 3.8.2 contain a remote code execution vulnerability in the git_clone pull step that allows authenticated users to inject arbitrary commands, bypassing a previous CVE-2026-5366 remediation. Any organization operating self-hosted Prefect orchestration infrastructure could see attackers gain code execution on production servers if internal users with Prefect access are compromised or if access controls are misconfigured.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict Prefect API access via network segmentation and WAF rules limiting git_clone parameter injection patterns, enforce strong authentication for all Prefect users, disable the git_clone pull step if not operationally critical, and implement real-time alerting on suspicious git arguments in audit logs to detect exploitation attempts.

Threat Intelligence Overview

EPSS Score
0.7%
Top 50% exploitable
Prevalence
Medium
popular Python workflow orchestration platform, growing enterprise and data engineering adoption
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy