Advisories · Docker & Containers
CVE-2024-23653
Critical
CVSS 9.8
BuildKit container escape through the GRPC API
Disclosed 2024 · Last reviewed 2 Dec 2026
A build submitted to a reachable BuildKit API could start a container with more privileges than the frontend was supposed to allow.
What happened
The security mode on the GRPC session was not applied to every container the frontend requested.
Affected and patched versions
- Affected
- BuildKit before 0.12.5 when the build API is reachable by someone who can submit a build.
- Patched
- BuildKit 0.12.5 and later.
How to check your server
Check
docker buildx version
How to fix and harden
- Upgrade BuildKit to 0.12.5 or later.
- Do not publish the BuildKit socket or port. The people who can submit a build are the trust boundary.
Fix
docker buildx version
Sources
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON