CVE-2024-23653: Buildkit's interactive containers API does not validate entitlements check
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.92107%
CWE
Published
1/31/2024
Updated
5/20/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/moby/buildkit | go | < 0.12.5 | 0.12.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from interactive container APIs accessing worker resources directly rather than through the build job context. Key functions like NewContainer and LLBBridgeToGatewayClient were modified in the patch to stop using worker.Worker.Executor() directly and instead use an executor passed through the build context. This indicates these functions previously lacked entitlement validation by accessing worker resources directly. The gateway frontend initialization was similarly modified to use worker info rather than direct worker access, showing it was part of the insecure path.