SCA: security update for prefect (GHSA-7pm4-56h2-5rxr)

critical Tenable Cloud Security Plugin ID 478303

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Prefect version 3.6.23 is vulnerable to remote code execution due to improper handling of user-controlled
input in the `GitRepository` storage class. The `commit_sha` parameter, which is passed to git commands,
lacks validation and does not include a `--` separator to distinguish user input from git flags. This
allows attackers to inject arbitrary git flags, such as `--upload-pack`, enabling execution of external
programs. Additionally, the `directories` parameter can be exploited to inject git flags during sparse-
checkout operations. These vulnerabilities allow any user with deployment creation permissions to execute
arbitrary commands on worker machines, compromising shared work pools in multi-tenant environments.
(CVE-2026-5366)

Solution

Update the prefect library and its related packages to version 3.6.25 or later.

See Also

https://github.com/advisories/GHSA-7pm4-56h2-5rxr

Plugin Details

Severity: Critical

ID: 478303

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 11/4/2026

Updated: 11/4/2026

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.18

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2026-5366

CVSS v3

Risk Factor: Critical

Base Score: 9.9

Temporal Score: 8.9

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 6/20/2026

Vulnerability Publication Date: 6/20/2026

Reference Information

CVE: CVE-2026-5366

cwe: CWE-94