Vulnerabilities / CVE-2024-23653

critical

CVE-2024-23653

moby/buildkit: Buildkit's interactive containers API does not validate entitlements check

Published Modified CWE 863
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.0CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Azure Linux, CBL-Mariner. Rated lower by Red Hat (high), Amazon (high), Bottlerocket (high), Ubuntu (medium).

Description

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 and fixed versions

SourcePackageFixed in
Azure Linux 3.0docker-buildx, docker-compose, moby-engine0:0.14.0-1.azl3 and 2 more
CBL-Mariner 2.0moby-buildx, moby-cli, moby-compose and 1 more0:0.7.1-18.cm2 and 2 more
go::GitHub Security Advisory Gogithub.com/moby/buildkit0.12.5
alpine 3.18docker25.0.2-r0
alpine 3.19buildkit, docker, singularity0.12.5-r0 and 2 more
alpine 3.20buildkit, docker, podman and 1 more0.12.5-r0 and 3 more
alpine 3.21buildkit, docker, podman and 1 more0.12.5-r0 and 3 more
alpine 3.22buildkit, docker, podman and 1 more0.12.5-r0 and 3 more
alpine 3.23buildkit, docker, podman and 1 more0.12.5-r0 and 3 more
alpine 3.24buildkit, docker, podman and 1 more0.12.5-r0 and 3 more
alpine edgebuildkit, docker, podman and 1 more0.12.5-r0 and 3 more
amazon linux 2023docker, docker-debuginfo, docker-debugsource25.0.3-1.amzn2023.0.1
Show all 72 entries from 23 sources
SourcePackageFixed in
Azure Linux 3.0docker-buildx0:0.14.0-1.azl3
Azure Linux 3.0docker-compose0:2.27.0-1.azl3
Azure Linux 3.0moby-engine0:25.0.3-1.azl3
CBL-Mariner 2.0moby-buildx0:0.7.1-18.cm2
CBL-Mariner 2.0moby-cli0:20.10.27-3.cm2
CBL-Mariner 2.0moby-compose0:2.17.2-7.cm2
CBL-Mariner 2.0moby-engine0:20.10.27-3.cm2
go::GitHub Security Advisory Gogithub.com/moby/buildkit0.12.5
alpine 3.18docker25.0.2-r0
alpine 3.19buildkit0.12.5-r0
alpine 3.19docker25.0.2-r0
alpine 3.19singularity4.1.1-r0
alpine 3.20buildkit0.12.5-r0
alpine 3.20docker25.0.2-r0
alpine 3.20podman4.9.2-r0
alpine 3.20singularity4.1.1-r0
alpine 3.21buildkit0.12.5-r0
alpine 3.21docker25.0.2-r0
alpine 3.21podman4.9.2-r0
alpine 3.21singularity4.1.1-r0
alpine 3.22buildkit0.12.5-r0
alpine 3.22docker25.0.2-r0
alpine 3.22podman4.9.2-r0
alpine 3.22singularity4.1.1-r0
alpine 3.23buildkit0.12.5-r0
alpine 3.23docker25.0.2-r0
alpine 3.23podman4.9.2-r0
alpine 3.23singularity4.1.1-r0
alpine 3.24buildkit0.12.5-r0
alpine 3.24docker25.0.2-r0
alpine 3.24podman4.9.2-r0
alpine 3.24singularity4.1.1-r0
alpine edgebuildkit0.12.5-r0
alpine edgedocker25.0.2-r0
alpine edgepodman4.9.2-r0
alpine edgesingularity4.1.1-r0
amazon linux 2023docker25.0.3-1.amzn2023.0.1
amazon linux 2023docker-debuginfo25.0.3-1.amzn2023.0.1
amazon linux 2023docker-debugsource25.0.3-1.amzn2023.0.1
bottlerocketdocker-engine1.19.1-c325a08b
chainguardbuildkitd0.12.5-r0
chainguardconftest0.49.0-r1
chainguardconftest-fips0.48.0-r2
chainguarddocker25.0.2-r0
chainguardguac0.4.0-r1
chainguardkaniko1.20.1-r0
chainguardkubescape3.0.3-r7
chainguardscorecard4.13.1-r4
chainguardskaffold2.11.0-r0
chainguardtrivy0.49.0-r1
chainguardzot2.0.1-r2
rapidfort amazon linux 2023docker25.0.3-1.amzn2023.0.1
rapidfort ubuntu 20.04docker.io0:26.1.5+dfsg1-9ubuntu1
rapidfort ubuntu 22.04docker.io0:26.1.5+dfsg1-9ubuntu1
rapidfort ubuntu 24.04docker.io0:26.1.5+dfsg1-9ubuntu1
ubuntu 18.04-ESMdocker.iono fix listed
ubuntu 20.04-ESMdocker.iono fix listed
ubuntu 20.04-ESMdocker.io-app26.1.3-0ubuntu1~20.04.1+esm1
ubuntu 22.04docker.iono fix listed
ubuntu 22.04docker.io-app27.5.1-0ubuntu3~22.04.2
ubuntu 24.04docker.iono fix listed
ubuntu 24.04docker.io-app27.5.1-0ubuntu3~24.04.2
wolfibuildkitd0.12.5-r0
wolficonftest0.49.0-r1
wolfidocker25.0.2-r0
wolfiguac0.4.0-r1
wolfikaniko1.20.1-r0
wolfikubescape3.0.3-r7
wolfiscorecard4.13.1-r4
wolfiskaffold2.11.0-r0
wolfitrivy0.49.0-r1
wolfizot2.0.1-r2

References

All 13 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.