CVE-2026-7725: Prefect Prefect Git Argument Injection Vulnerability
LOWCVE-2026-7725 is a LOW (CVSS 6.3) prefect git argument injection vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Prefect libraries in the PyPI ecosystem. The issue involves prefect git argument injection in gitrepository pull steps. Remediation is available by upgrading affected packages to version 3.6.25.dev7.
CVE-2026-7725 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2026-7725
To remediate this vulnerability, upgrade all affected Prefect dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install prefect>=3.6.25.dev7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show prefect
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-7725, inspect your installed packages using pip:
pip show prefect
Analyze the terminal output to locate any version of Prefect in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.6.25.dev7), your application is affected.
Note: The pip show prefect command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Prefect, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-7725 Affected Prefect Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
prefect
|
PyPI |
< 3.6.25.dev7
|
3.6.25.dev7
|
References
Frequently Asked Questions
What is CVE-2026-7725?
Which Prefect versions are affected?
What version fixes CVE-2026-7725?
Is prefect affected?
What is the CVSS score of CVE-2026-7725?
What CWE is associated with CVE-2026-7725?
How can I check PyPI dependencies for CVE-2026-7725?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6rcx-55r6-jx65",
"modified" : "2026-05-22T13:09:34Z",
"published" : "2026-05-04T06:32:02Z",
"aliases" : [ "CVE-2026-7725" ],
"summary" : "Prefect Git Argument Injection in GitRepository Pull Steps",
"details" : "A vulnerability was found in PrefectHQ prefect up to 3.6.25.dev6. Affected by this issue is some unknown functionality of the file src/prefect/runner/storage.py of the component GitRepository Pull Handler. The manipulation of the argument commit_sha/directories results in argument injection. It is possible to launch the attack remotely. The exploit has been made public and could be used. Upgrading to version 3.6.25.dev7 can resolve this issue. The patch is identified as 6a9d9918716ce4ee0297b69f3046f7067ef1faae. It is advisable to upgrade the affected component.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "prefect"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.6.25.dev7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-7725"
}, {
"type" : "WEB",
"url" : "https://github.com/PrefectHQ/prefect/pull/21384"
}, {
"type" : "WEB",
"url" : "https://github.com/PrefectHQ/prefect/commit/6a9d9918716ce4ee0297b69f3046f7067ef1faae"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/nedlir/c37d90dda5f715790eafc970b2ef0c8a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/PrefectHQ/prefect"
}, {
"type" : "WEB",
"url" : "https://github.com/PrefectHQ/prefect/releases/tag/3.6.25.dev7"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/submit/807356"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/vuln/360901"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/vuln/360901/cti"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-22T13:09:34Z",
"nvd_published_at" : "2026-05-04T05:16:00Z"
}
}