Cloudanix VulnDB

CVE-2024-23653

Critical · 9.8

CVSS

9.8

EPSS

3.4%

Published

Jan 31, 2024

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A flaw in a widely used build tool can let attackers run powerful containers without permission, potentially letting them tamper with software builds and compromise entire development pipelines.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Full Compromise
Component
Application
Class
Authorization Bypass
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Authorization bypass in BuildKit that permits APIs to spawn containers with elevated privileges without requiring the security.insecure entitlement in both daemon configuration and build request.

Why it matters to the business

Attackers can obtain full control over build pipelines and artifacts, enabling supply-chain compromise, intellectual-property theft, or deployment of malicious code in downstream systems.

How an attack unfolds

An attacker sends a build request to a reachable BuildKit instance that invokes the interactive container APIs, requesting a privileged container; the missing entitlement checks allow the request to succeed and the attacker gains an elevated-privilege shell inside the build environment.

How to fix it

Upgrade moby/buildkit to v0.12.5 or later (commit bac3f2b673f3f9d33e79046008e7a38e856b3dc6). Avoid using BuildKit frontends from untrusted sources until the upgrade is complete.

How to confirm the fix worked

Confirm the installed BuildKit binary reports version 0.12.5 or newer; review buildkitd configuration to ensure security.insecure is disabled by default; run a test build that attempts privileged container creation and verify it is rejected.

Typical attack path

  1. Identify an exposed BuildKit daemon or frontend accepting build requests from untrusted sources
  2. Craft a build request that exercises the interactive-container APIs while requesting elevated privileges
  3. Submit the request; the missing entitlement validation permits the container to start with root-level capabilities
  4. Use the resulting privileged container to inspect host resources, exfiltrate secrets, or inject malicious build steps

How to detect it

Search BuildKit daemon logs for build requests that specify privileged options or reference the interactive-container APIs; look for unexpected privileged container creation events in container runtime audit logs around the time of build activity.

What your security team should do

  • Immediately upgrade all BuildKit deployments to the fixed version
  • Audit build pipelines for use of untrusted frontends and remove or isolate them
  • Enable logging of build requests and privileged-container attempts for future monitoring
  • Review CI/CD systems that embed BuildKit for exposure to external build contexts

The record

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. In addition to running containers as build steps, BuildKit also 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. The issue has been fixed in v0.12.5 . Avoid using BuildKit frontends from untrusted sources.

Affected packages

Ecosystem Package Introduced Fixed
Go github.com/moby/buildkit 0 0.12.5
Chainguard buildctl 0 0.12.5-r0
Chainguard buildkitd 0 0.12.5-r0
Chainguard conftest 0 0.49.0-r1
Chainguard conftest-fips 0 0.48.0-r2
Chainguard datadog-agent 0 7.50.3-r1
Chainguard datadog-agent-core-integrations 0 7.50.3-r1
Chainguard datadog-agent-core-integrations-fips 0 7.50.3-r1
Chainguard datadog-agent-fakeintake 0 7.50.3-r1
Chainguard datadog-agent-fakeintake-fips 0 7.50.3-r1
Chainguard datadog-agent-fips 0 7.50.3-r1
Chainguard datadog-agent-jmx 0 7.50.3-r1
Chainguard datadog-agent-jmx-fips 0 7.50.3-r1
Chainguard datadog-agent-oci-compat 0 7.50.3-r1
Chainguard datadog-agent-oci-compat-fips 0 7.50.3-r1
Chainguard datadog-agent-s6-overlay 0 7.50.3-r1
Chainguard datadog-agent-s6-overlay-fips 0 7.50.3-r1
Chainguard datadog-cluster-agent 0 7.50.3-r1
Chainguard datadog-cluster-agent-fips 0 7.50.3-r1
Chainguard datadog-cluster-agent-oci-compat 0 7.50.3-r1
Chainguard datadog-cluster-agent-oci-compat-fips 0 7.50.3-r1
Chainguard docker 0 25.0.2-r0
Chainguard docker-config-mirror-gcr 0 25.0.2-r0
Chainguard docker-dind 0 25.0.2-r0
Chainguard docker-dind-compat 0 25.0.2-r0
Chainguard docker-init 0 25.0.2-r0
Chainguard docker-modprobe-compat 0 25.0.2-r0
Chainguard docker-oci-entrypoint 0 25.0.2-r0
Chainguard docker-rootless 0 25.0.2-r0
Chainguard dockerd 0 25.0.2-r0
Chainguard dockerd-oci-entrypoint 0 25.0.2-r0
Chainguard dockerd-service 0 25.0.2-r0
Chainguard dogstatsd 0 7.50.3-r1
Chainguard guac 0 0.4.0-r1
Chainguard guaccsub 0 0.4.0-r1
Chainguard guacgql 0 0.4.0-r1
Chainguard guacingest 0 0.4.0-r1
Chainguard guacone 0 0.4.0-r1
Chainguard kaniko 0 1.20.1-r0
Chainguard kaniko-compat 0 1.20.1-r0
Chainguard kaniko-warmer 0 1.20.1-r0
Chainguard kaniko-warmer-compat 0 1.20.1-r0
Chainguard kubescape 0 3.0.3-r7
Chainguard scorecard 0 4.13.1-r4
Chainguard skaffold 0 2.11.0-r0
Chainguard trivy 0 0.49.0-r1
Chainguard zot 0 2.0.1-r2
SUSE:Enterprise Storage 7.1 buildah 0 1.35.4-150300.8.25.1
SUSE:Enterprise Storage 7.1 docker 0 24.0.7_ce-150000.193.1
SUSE:Enterprise Storage 7.1 docker 0 25.0.6_ce-150000.207.1
SUSE:Enterprise Storage 7.1 docker-stable 0 24.0.9_ce-150000.1.8.1
SUSE:Enterprise Storage 7.1 docker-stable 0 24.0.9_ce-150000.1.25.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS buildah 0 1.35.4-150300.8.25.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS docker-stable 0 24.0.9_ce-150000.1.8.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS docker-stable 0 24.0.9_ce-150000.1.25.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS docker-stable 0 24.0.9_ce-150000.1.8.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS docker-stable 0 24.0.9_ce-150000.1.25.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS docker-stable 0 24.0.9_ce-150000.1.8.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS docker-stable 0 24.0.9_ce-150000.1.25.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS docker-stable 0 24.0.9_ce-150000.1.25.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS docker-stable 0 24.0.9_ce-150000.1.25.1
SUSE:Linux Enterprise Micro 5.1 docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise Micro 5.1 docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise Micro 5.2 docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise Micro 5.2 docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise Micro 5.3 docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise Micro 5.3 docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise Micro 5.4 docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise Micro 5.4 docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise Micro 5.5 docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise Micro 5.5 docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise Module for Containers 12 docker 0 24.0.7_ce-98.106.1
SUSE:Linux Enterprise Module for Containers 12 docker 0 25.0.5_ce-98.112.1
SUSE:Linux Enterprise Module for Containers 15 SP4 docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise Module for Containers 15 SP5 docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise Module for Containers 15 SP5 docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise Module for Containers 15 SP5 docker-stable 0 24.0.9_ce-150000.1.8.1
SUSE:Linux Enterprise Module for Containers 15 SP6 docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise Module for Containers 15 SP6 docker-stable 0 24.0.9_ce-150000.1.8.1
SUSE:Linux Enterprise Module for Containers 15 SP6 docker-stable 0 24.0.9_ce-150000.1.11.1
SUSE:Linux Enterprise Module for Containers 15 SP6 docker-stable 0 24.0.9_ce-150000.1.25.1
SUSE:Linux Enterprise Module for Containers 15 SP7 docker-stable 0 24.0.9_ce-150000.1.25.1
SUSE:Linux Enterprise Server 12 SP5-LTSS docker 0 27.5.1_ce-98.126.1
SUSE:Linux Enterprise Server 12 SP5-LTSS docker-stable 0 24.0.9_ce-1.20.1
SUSE:Linux Enterprise Server 12 SP5-LTSS docker-stable 0 24.0.9_ce-1.11.1
SUSE:Linux Enterprise Server 15 SP2-LTSS docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise Server 15 SP2-LTSS docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise Server 15 SP3-LTSS buildah 0 1.35.4-150300.8.25.1
SUSE:Linux Enterprise Server 15 SP3-LTSS docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise Server 15 SP3-LTSS docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise Server 15 SP3-LTSS docker-stable 0 24.0.9_ce-150000.1.8.1
SUSE:Linux Enterprise Server 15 SP3-LTSS docker-stable 0 24.0.9_ce-150000.1.25.1
SUSE:Linux Enterprise Server 15 SP4-LTSS docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise Server 15 SP4-LTSS docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise Server 15 SP4-LTSS docker-stable 0 24.0.9_ce-150000.1.8.1
SUSE:Linux Enterprise Server 15 SP4-LTSS docker-stable 0 24.0.9_ce-150000.1.25.1
SUSE:Linux Enterprise Server 15 SP5-LTSS docker-stable 0 24.0.9_ce-150000.1.25.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 docker 0 27.5.1_ce-98.126.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 docker-stable 0 24.0.9_ce-1.20.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 docker-stable 0 24.0.9_ce-1.11.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 buildah 0 1.35.4-150300.8.25.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 docker-stable 0 24.0.9_ce-150000.1.8.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 docker-stable 0 24.0.9_ce-150000.1.25.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 docker 0 24.0.7_ce-150000.193.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 docker 0 25.0.6_ce-150000.207.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 docker-stable 0 24.0.9_ce-150000.1.8.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 docker-stable 0 24.0.9_ce-150000.1.25.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP5 docker-stable 0 24.0.9_ce-150000.1.25.1
Ubuntu:20.04:LTS docker.io 0 No fix
Ubuntu:20.04:LTS docker.io-app 0 No fix
Ubuntu:22.04:LTS docker.io 0 No fix
Ubuntu:22.04:LTS docker.io-app 0 No fix
Ubuntu:22.04:LTS docker.io-app 0 27.5.1-0ubuntu3~22.04.2
Ubuntu:24.04:LTS docker.io 0 No fix
Ubuntu:24.04:LTS docker.io-app 0 No fix
Ubuntu:24.04:LTS docker.io-app 0 27.5.1-0ubuntu3~24.04.2
Ubuntu:24.10 docker.io 0 No fix
Ubuntu:24.10 docker.io-app 0 No fix
Ubuntu:25.04 docker.io 0 No fix
Ubuntu:25.04 docker.io-app 0 No fix
Ubuntu:25.10 docker.io 0 No fix
Ubuntu:25.10 docker.io-app 0 No fix
Ubuntu:Pro:18.04:LTS docker.io 0 No fix
Ubuntu:Pro:20.04:LTS docker.io 0 No fix
Ubuntu:Pro:20.04:LTS docker.io-app 0 No fix
Ubuntu:Pro:20.04:LTS docker.io-app 0 26.1.3-0ubuntu1~20.04.1+esm1
Ubuntu:Pro:22.04:LTS docker.io 0 No fix
Ubuntu:Pro:24.04:LTS docker.io 0 No fix
Wolfi buildctl 0 0.12.5-r0
Wolfi buildkitd 0 0.12.5-r0
Wolfi conftest 0 0.49.0-r1
Wolfi datadog-agent 0 7.50.3-r1
Wolfi datadog-agent-core-integrations 0 7.50.3-r1
Wolfi datadog-agent-fakeintake 0 7.50.3-r1
Wolfi datadog-agent-jmx 0 7.50.3-r1
Wolfi datadog-agent-oci-compat 0 7.50.3-r1
Wolfi datadog-agent-s6-overlay 0 7.50.3-r1
Wolfi datadog-cluster-agent 0 7.50.3-r1
Wolfi datadog-cluster-agent-oci-compat 0 7.50.3-r1
Wolfi docker 0 25.0.2-r0
Wolfi docker-config-mirror-gcr 0 25.0.2-r0
Wolfi docker-dind 0 25.0.2-r0
Wolfi docker-dind-compat 0 25.0.2-r0
Wolfi docker-init 0 25.0.2-r0
Wolfi docker-modprobe-compat 0 25.0.2-r0
Wolfi docker-oci-entrypoint 0 25.0.2-r0
Wolfi docker-rootless 0 25.0.2-r0
Wolfi dockerd 0 25.0.2-r0
Wolfi dockerd-oci-entrypoint 0 25.0.2-r0
Wolfi dockerd-service 0 25.0.2-r0
Wolfi dogstatsd 0 7.50.3-r1
Wolfi guac 0 0.4.0-r1
Wolfi guaccsub 0 0.4.0-r1
Wolfi guacgql 0 0.4.0-r1
Wolfi guacingest 0 0.4.0-r1
Wolfi guacone 0 0.4.0-r1
Wolfi kaniko 0 1.20.1-r0
Wolfi kaniko-compat 0 1.20.1-r0
Wolfi kaniko-warmer 0 1.20.1-r0
Wolfi kaniko-warmer-compat 0 1.20.1-r0
Wolfi kubescape 0 3.0.3-r7
Wolfi scorecard 0 4.13.1-r4
Wolfi skaffold 0 2.11.0-r0
Wolfi trivy 0 0.49.0-r1
Wolfi zot 0 2.0.1-r2
openSUSE:Leap 15.5 docker 0 24.0.7_ce-150000.193.1
openSUSE:Leap 15.5 docker 0 25.0.6_ce-150000.207.1
openSUSE:Leap 15.5 docker-stable 0 24.0.9_ce-150000.1.8.1
openSUSE:Leap 15.6 docker 0 25.0.6_ce-150000.207.1
openSUSE:Leap 15.6 docker-stable 0 24.0.9_ce-150000.1.8.1
openSUSE:Leap 15.6 docker-stable 0 24.0.9_ce-150000.1.11.1
openSUSE:Leap 15.6 docker-stable 0 24.0.9_ce-150000.1.25.1
openSUSE:Leap Micro 5.3 docker 0 24.0.7_ce-150000.193.1
openSUSE:Leap Micro 5.4 docker 0 24.0.7_ce-150000.193.1
openSUSE:Leap Micro 5.5 docker 0 25.0.6_ce-150000.207.1
openSUSE:Tumbleweed buildkit 0 0.12.5-2.1
openSUSE:Tumbleweed docker 0 24.0.7_ce-3.1
openSUSE:Tumbleweed docker-stable 0 24.0.9_ce-4.1
openSUSE:Tumbleweed singularity-ce 0 4.1.3-1.1

Related vulnerabilities