-
Notifications
You must be signed in to change notification settings - Fork 673
Expand file tree
/
Copy pathGHSA-7pm4-56h2-5rxr.json
More file actions
64 lines (64 loc) · 2.08 KB
/
Copy pathGHSA-7pm4-56h2-5rxr.json
File metadata and controls
64 lines (64 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"schema_version": "1.4.0",
"id": "GHSA-7pm4-56h2-5rxr",
"modified": "2026-06-20T18:31:35Z",
"published": "2026-06-20T18:31:29Z",
"aliases": [
"CVE-2026-5366"
],
"summary": "Git Flag Injection via commit_sha and directories Parameters Leading to Remote Code Execution (RCE)",
"details": "Prefect version <=3.6.24 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.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "prefect"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.6.25"
}
]
}
],
"database_specific": {
"last_known_affected_version_range": "<= 3.6.24"
}
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-5366"
},
{
"type": "PACKAGE",
"url": "https://github.com/prefecthq/prefect"
},
{
"type": "WEB",
"url": "https://huntr.com/bounties/e2e88a0f-a8f6-49c9-94c5-e98dc385f07a"
}
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"severity": "CRITICAL",
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-06-20T17:16:26Z"
}
}