CVE-2026-3515: Prefect prefect-github argument injection in GitHubRepository

CVE-2026-3515 · Severity: high · CVSS 8.5 · Published 2026-05-24

Prefect is a workflow orchestration platform used to manage and automate data pipelines. A security flaw in its GitHub integration allows an attacker to manipulate how the system interacts with GitHub repositories. This could lead to unauthorized access to sensitive credentials, internal network scanning, or the ability to run malicious code on the server hosting the Prefect workflows.

Technologies: prefect (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2026-3515 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-3515 being exploited in the wild.
How severe is CVE-2026-3515?
High severity, with a CVSS score of 8.5, published 24 May 2026.
Which products and versions are affected?
Prefect-Github 3.6.18; prefect (PyPI) <= 3.6.18, ECOSYSTEM:introduced=0,last_affected=3.6.18.
Is there a fix for CVE-2026-3515?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-3515 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-3515?
Check whether you run Prefect-Github or prefect (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

An argument injection vulnerability (CWE-88) exists in the `GitHubRepository` block of the `prefect-github` integration. The root cause is the improper sanitization of the `reference` field, which is directly concatenated into a `git clone` command string before being parsed by `shlex.split()`. An attacker with low privileges can inject arbitrary git options, such as `-c`, to manipulate command execution. This affects both the `aget_directory()` and `get_directory()` methods in `repository.py`. Successful exploitation can result in SSRF, credential theft, or remote code execution (RCE). As of the advisory date, no patched version is specified for the 3.6.18 branch.

Affected products

  • PrefectHQ Prefect <= 3.6.18

Identifiers

  • CVE-2026-3515
  • GHSA-cw25-2p92-7f75
  • PYSEC-2026-2957

Timeline

  • 2026-05-24: disclosed: NVD Published Date
  • 2026-05-26: advisory: GitHub Advisory published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.