CVE-2026-7725 Details
Description
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. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.
A vulnerability allowing argument injection has been identified in PrefectHQ Prefect versions prior to 3.6.25.dev6. The issue resides in the GitRepository Pull Handler, specifically within the file src/prefect/runner/storage.py. The vulnerability arises because the constructor of GitRepository accepts commit_sha and directories parameters without proper validation, allowing values that start with '-' to be interpreted as git command flags. This injection can be exploited remotely, with the potential for denial-of-service or, under certain conditions, pre-authentication remote code execution on the server hosting the git repository.
Users are advised to upgrade to Prefect version 3.6.25 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 4, 2026CISA-ADP
Assessed May 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://vuldb.com/submit/807356 | CISA-ADP | Permission Required |
| https://gist.github.com/nedlir/c37d90dda5f715790eafc970b2ef0c8a | [email protected] | ExploitRemedy |
| https://github.com/PrefectHQ/prefect/ | [email protected] | Vendor |
| https://github.com/PrefectHQ/prefect/commit/6a9d9918716ce4ee0297b69f3046f7067ef1faae | [email protected] | Source CodeVendor |
| https://github.com/PrefectHQ/prefect/pull/21384 | [email protected] | Issue TrackingVendor |
| https://github.com/PrefectHQ/prefect/releases/tag/3.6.25.dev7 | [email protected] | Release NotesVendor |
| https://vuldb.com/submit/807356 | [email protected] | Permission Required |
| https://vuldb.com/vuln/360901 | [email protected] | AdvisoryPermission RequiredRemedy |
| https://vuldb.com/vuln/360901/cti | [email protected] | AdvisoryPermission Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Prefect | >= 3, < 3.6.25 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 5, 2026 | CVE Modified | CISA-ADP |
| May 4, 2026 | CVE Modified | [email protected] |
| May 4, 2026 | New CVE Received | [email protected] |
Volerion