Advisory

PYSEC-2026-2955

Also known as: CVE-2026-7725, GHSA-6rcx-55r6-jx65

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

Medium Basis: CVSS v3 score 6.3, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Dates

Published
2026-07-13 15:02 UTC
Modified
2026-07-13 16:32 UTC

Affected packages and fixes

prefect

PyPI · All systems

Affected

  • introduced 0, fixed 3.6.25.dev7 (ecosystem)

Fixed versions

3.6.25.dev7

Fix

  • Fixed version 3.6.25.dev7
    pip install --upgrade prefect==3.6.25.dev7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences