PYSEC-2026-2955
Prefect Git Argument Injection in GitRepository Pull Steps
Quick fix
PYSEC-2026-2955 — prefect: upgrade to the fixed version with the command below.
pip install --upgrade 'prefect>=3.6.25.dev7'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-7725[ADVISORY]
- https://github.com/PrefectHQ/prefect/pull/21384[WEB]
- https://github.com/PrefectHQ/prefect/commit/6a9d9918716ce4ee0297b69f3046f7067ef1faae[WEB]
- https://gist.github.com/nedlir/c37d90dda5f715790eafc970b2ef0c8a[WEB]
- https://github.com/PrefectHQ/prefect[PACKAGE]
- https://github.com/PrefectHQ/prefect/releases/tag/3.6.25.dev7[WEB]
- https://vuldb.com/submit/807356[WEB]
- https://vuldb.com/vuln/360901[WEB]
- https://vuldb.com/vuln/360901/cti[WEB]
- https://pypi.org/project/prefect[PACKAGE]
- https://github.com/advisories/GHSA-6rcx-55r6-jx65[ADVISORY]