CVE-2026-7725: Prefect Prefect Git Argument Injection Vulnerability

LOW
Advisory Identifier: GHSA-6rcx-55r6-jx65
CVSS 6.3
CWE-74
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-7725
GHSA Identifier GHSA-6rcx-55r6-jx65
Severity LOW
CVSS v3.1 Base Score 6.3
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Prefect
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

prefect fixed: 3.6.25.dev7
pip install prefect>=3.6.25.dev7
Verify Direct and Transitive Dependencies

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

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.

CVE-2026-7725 Affected Prefect Versions

1 component(s)
Fixed Versions:
3.6.25.dev7
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?
CVE-2026-7725 is a security vulnerability in Prefect involving Prefect Git Argument Injection in GitRepository Pull Steps under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Prefect versions are affected?
Affected versions include releases prior to 3.6.25.dev7 across affected packages: prefect.
What version fixes CVE-2026-7725?
Upgrading to 3.6.25.dev7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is prefect affected?
Yes, prefect is affected in releases prior to 3.6.25.dev7. Upgrade your dependency to 3.6.25.dev7 or later.
What is the CVSS score of CVE-2026-7725?
CVE-2026-7725 has a CVSS v3.1 base score of 6.3 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2026-7725?
CVE-2026-7725 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (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.).
How can I check PyPI dependencies for CVE-2026-7725?
Run the dependency tree command: 'pip show prefect'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}