Skip to content

Commit 6d7904a

Browse files
committed
data/reports: add GO-2024-2497.yaml
Aliases: CVE-2024-23653, GHSA-wr6v-9f75-vh2g Fixes #2497 Fixes #2498 Change-Id: I7ac3927fcd090405110f5e26aa77dc9a2459b327 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/562238 Run-TryBot: Tim King <[email protected]> TryBot-Result: Gopher Robot <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Damien Neil <[email protected]>
1 parent 102c8ba commit 6d7904a

File tree

2 files changed

+154
-0
lines changed

2 files changed

+154
-0
lines changed

data/osv/GO-2024-2497.json

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
"schema_version": "1.3.1",
3+
"id": "GO-2024-2497",
4+
"modified": "0001-01-01T00:00:00Z",
5+
"published": "0001-01-01T00:00:00Z",
6+
"aliases": [
7+
"CVE-2024-23653",
8+
"GHSA-wr6v-9f75-vh2g"
9+
],
10+
"summary": "Privilege escalation in github.com/moby/buildkit",
11+
"details": "BuildKit provides APIs for running interactive containers based on built images. It was possible to use these APIs to ask BuildKit to run a container with elevated privileges. Normally, running such containers is only allowed if special security.insecure entitlement is enabled both by buildkitd configuration and allowed by the user initializing the build request.",
12+
"affected": [
13+
{
14+
"package": {
15+
"name": "github.com/moby/buildkit",
16+
"ecosystem": "Go"
17+
},
18+
"ranges": [
19+
{
20+
"type": "SEMVER",
21+
"events": [
22+
{
23+
"introduced": "0"
24+
},
25+
{
26+
"fixed": "0.12.5"
27+
}
28+
]
29+
}
30+
],
31+
"ecosystem_specific": {
32+
"imports": [
33+
{
34+
"path": "github.com/moby/buildkit/solver/llbsolver",
35+
"symbols": [
36+
"Solver.Solve",
37+
"ValidateEntitlements",
38+
"llbBridge.Exec",
39+
"llbBridge.Run",
40+
"provenanceBridge.Solve"
41+
]
42+
},
43+
{
44+
"path": "github.com/moby/buildkit/frontend/gateway/forwarder",
45+
"symbols": [
46+
"BridgeClient.NewContainer",
47+
"GatewayForwarder.Solve",
48+
"LLBBridgeToGatewayClient"
49+
]
50+
},
51+
{
52+
"path": "github.com/moby/buildkit/cmd/buildkitd",
53+
"symbols": [
54+
"newController"
55+
]
56+
},
57+
{
58+
"path": "github.com/moby/buildkit/frontend/gateway/container",
59+
"symbols": [
60+
"NewContainer"
61+
]
62+
},
63+
{
64+
"path": "github.com/moby/buildkit/frontend/gateway",
65+
"symbols": [
66+
"NewBridgeForwarder",
67+
"gatewayFrontend.Solve",
68+
"llbBridgeForwarder.NewContainer",
69+
"newBridgeForwarder",
70+
"serveLLBBridgeForwarder"
71+
]
72+
}
73+
]
74+
}
75+
}
76+
],
77+
"references": [
78+
{
79+
"type": "FIX",
80+
"url": "https://github.com/moby/buildkit/pull/4602"
81+
},
82+
{
83+
"type": "FIX",
84+
"url": "https://github.com/moby/buildkit/commit/92cc595cfb12891d4b3ae476e067c74250e4b71e"
85+
},
86+
{
87+
"type": "FIX",
88+
"url": "https://github.com/moby/buildkit/commit/5026d95aa3336e97cfe46e3764f52d08bac7a10e"
89+
},
90+
{
91+
"type": "WEB",
92+
"url": "https://github.com/moby/buildkit/releases/tag/v0.12.5"
93+
}
94+
],
95+
"credits": [
96+
{
97+
"name": "@rmcnamara-snyk"
98+
}
99+
],
100+
"database_specific": {
101+
"url": "https://pkg.go.dev/vuln/GO-2024-2497"
102+
}
103+
}

data/reports/GO-2024-2497.yaml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
id: GO-2024-2497
2+
modules:
3+
- module: github.com/moby/buildkit
4+
versions:
5+
- fixed: 0.12.5
6+
vulnerable_at: 0.12.4
7+
packages:
8+
- package: github.com/moby/buildkit/solver/llbsolver
9+
symbols:
10+
- llbBridge.Exec
11+
- llbBridge.Run
12+
- ValidateEntitlements
13+
- Solver.Solve
14+
- provenanceBridge.Solve
15+
- package: github.com/moby/buildkit/frontend/gateway/forwarder
16+
symbols:
17+
- BridgeClient.NewContainer
18+
- LLBBridgeToGatewayClient
19+
- GatewayForwarder.Solve
20+
- package: github.com/moby/buildkit/cmd/buildkitd
21+
symbols:
22+
- newController
23+
- package: github.com/moby/buildkit/frontend/gateway/container
24+
symbols:
25+
- NewContainer
26+
- package: github.com/moby/buildkit/frontend/gateway
27+
symbols:
28+
- serveLLBBridgeForwarder
29+
- newBridgeForwarder
30+
- gatewayFrontend.Solve
31+
- NewBridgeForwarder
32+
- llbBridgeForwarder.NewContainer
33+
fix_link: https://github.com/moby/buildkit/commit/5026d95aa3336e97cfe46e3764f52d08bac7a10e
34+
summary: Privilege escalation in github.com/moby/buildkit
35+
description: |-
36+
BuildKit provides APIs for running interactive containers based on built images.
37+
It was possible to use these APIs to ask BuildKit to run a container with
38+
elevated privileges. Normally, running such containers is only allowed if
39+
special security.insecure entitlement is enabled both by buildkitd
40+
configuration and allowed by the user initializing the build request.
41+
cves:
42+
- CVE-2024-23653
43+
ghsas:
44+
- GHSA-wr6v-9f75-vh2g
45+
credits:
46+
- '@rmcnamara-snyk'
47+
references:
48+
- fix: https://github.com/moby/buildkit/pull/4602
49+
- fix: https://github.com/moby/buildkit/commit/92cc595cfb12891d4b3ae476e067c74250e4b71e
50+
- fix: https://github.com/moby/buildkit/commit/5026d95aa3336e97cfe46e3764f52d08bac7a10e
51+
- web: https://github.com/moby/buildkit/releases/tag/v0.12.5

0 commit comments

Comments
 (0)