Skip to content
OpenAdvisories

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 products

VendorProductAffectedFixed
moby buildkit < 0.12.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS docker.io-app 27.5.1-0ubuntu3~24.04.2 —
Ubuntu 22.04 LTS docker.io-app 27.5.1-0ubuntu3~22.04.2 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS docker.io No fix yet —
Ubuntu Pro 22.04 LTS docker.io No fix yet —
Ubuntu Pro 20.04 LTS docker.io No fix yet —
Ubuntu Pro 20.04 LTS docker.io-app 26.1.3-0ubuntu1~20.04.1+esm1 —
Ubuntu Pro 18.04 LTS docker.io No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES 15 SP6 docker 25.0.6_ce-150000.207.1 SUSE-SU-2024:3120-1
SLES 15 SP6 docker-stable 24.0.9_ce-150000.1.8.1 SUSE-SU-2025:03545-1, SUSE-SU-2025:0226-1, SUSE-RU-2024:4391-1
SLES 15 SP5 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SLES 15 SP5 docker-stable 24.0.9_ce-150000.1.8.1 SUSE-SU-2025:03545-1, SUSE-RU-2024:4391-1
SLES 15 SP4 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-2, SUSE-SU-2024:0586-1
SLES 15 SP4 docker-stable 24.0.9_ce-150000.1.8.1 SUSE-SU-2025:03545-1, SUSE-RU-2024:4391-1
SLES 15 SP3 buildah 1.35.4-150300.8.25.1 SUSE-SU-2024:3120-1
SLES 15 SP3 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SLES 15 SP3 docker-stable 24.0.9_ce-150000.1.8.1 SUSE-SU-2025:03545-1, SUSE-RU-2024:4391-1
Show 18 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 15 SP2 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SLES 12 SP5 docker 27.5.1_ce-98.126.1 SUSE-SU-2025:1102-1
SLES 12 SP5 docker-stable 24.0.9_ce-1.11.1 SUSE-SU-2025:1102-1, SUSE-SU-2025:03540-1
SLES 12 docker 24.0.7_ce-98.106.1 SUSE-SU-2024:1469-1, SUSE-SU-2024:0587-1
SLES for SAP 15 SP5 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES for SAP 15 SP4 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SLES for SAP 15 SP4 docker-stable 24.0.9_ce-150000.1.8.1 SUSE-SU-2025:03545-1, SUSE-RU-2024:4391-1
SLES for SAP 15 SP3 buildah 1.35.4-150300.8.25.1 SUSE-SU-2024:3120-1
SLES for SAP 15 SP3 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SLES for SAP 15 SP3 docker-stable 24.0.9_ce-150000.1.8.1 SUSE-SU-2025:03545-1, SUSE-RU-2024:4391-1
SLES for SAP 15 SP2 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SLE Micro 6.0 buildkit 0.12.5-1.1 SUSE-SU-2025:20107-1
SLE Micro 6.0 docker 25.0.6_ce-1.1 SUSE-SU-2025:20056-1
SLE Micro 5.5 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SLE Micro 5.4 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SLE Micro 5.3 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SLE Micro 5.2 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SLE Micro 5.1 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SLE HPC 15 SP5 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLE HPC 15 SP4 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SLE HPC 15 SP4 docker-stable 24.0.9_ce-150000.1.8.1 SUSE-SU-2025:03545-1, SUSE-RU-2024:4391-1
SLE HPC 15 SP3 buildah 1.35.4-150300.8.25.1 SUSE-SU-2024:3120-1
SLE HPC 15 SP3 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SLE HPC 15 SP3 docker-stable 24.0.9_ce-150000.1.8.1 SUSE-SU-2025:03545-1, SUSE-RU-2024:4391-1
SLE HPC 15 SP2 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SUSE Enterprise Storage 7.1 buildah 1.35.4-150300.8.25.1 SUSE-SU-2024:3120-1
SUSE Enterprise Storage 7.1 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
SUSE Enterprise Storage 7.1 docker-stable 24.0.9_ce-150000.1.8.1 SUSE-SU-2025:03545-1, SUSE-RU-2024:4391-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed buildkit 0.12.5-2.1 openSUSE-SU-2024:13688-1
openSUSE Tumbleweed docker 24.0.7_ce-3.1 openSUSE-SU-2024:13689-1
openSUSE Tumbleweed docker-stable 24.0.9_ce-4.1 openSUSE-SU-2024:14571-1
openSUSE Tumbleweed singularity-ce 4.1.3-1.1 openSUSE-SU-2024:14059-1
openSUSE Leap 15.6 docker 25.0.6_ce-150000.207.1 SUSE-SU-2024:3120-1
openSUSE Leap 15.6 docker-stable 24.0.9_ce-150000.1.8.1 SUSE-SU-2025:03545-1, SUSE-SU-2025:0226-1, SUSE-RU-2024:4391-1
openSUSE Leap 15.5 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:3120-1, SUSE-SU-2024:0586-1
openSUSE Leap 15.5 docker-stable 24.0.9_ce-150000.1.8.1 SUSE-RU-2024:4391-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.5 docker 25.0.6_ce-150000.207.1 SUSE-SU-2024:3120-1
openSUSE Leap Micro 5.4 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:0586-1
openSUSE Leap Micro 5.3 docker 24.0.7_ce-150000.193.1 SUSE-SU-2024:0586-1
ReleasePackageFixed inAdvisory
Alpine v3.24 buildkit 0.12.5-r0 —
Alpine v3.24 docker 25.0.2-r0 —
Alpine v3.24 podman 4.9.2-r0 —
Alpine v3.24 singularity 4.1.1-r0 —
Alpine v3.23 buildkit 0.12.5-r0 —
Alpine v3.23 docker 25.0.2-r0 —
Alpine v3.23 podman 4.9.2-r0 —
Alpine v3.23 singularity 4.1.1-r0 —
Alpine v3.22 buildkit 0.12.5-r0 —
Alpine v3.22 docker 25.0.2-r0 —
Alpine v3.22 podman 4.9.2-r0 —
Alpine v3.22 singularity 4.1.1-r0 —
Alpine v3.21 buildkit 0.12.5-r0 —
Alpine v3.21 docker 25.0.2-r0 —
Alpine v3.21 podman 4.9.2-r0 —
Alpine v3.21 singularity 4.1.1-r0 —
Alpine v3.20 buildkit 0.12.5-r0 —
Alpine v3.20 docker 25.0.2-r0 —
Alpine v3.20 podman 4.9.2-r0 —
Alpine v3.20 singularity 4.1.1-r0 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 buildkit 0.12.5-r0 —
Alpine v3.19 docker 25.0.2-r0 —
Alpine v3.19 singularity 4.1.1-r0 —
Alpine v3.18 docker 25.0.2-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 docker 25.0.3-1.amzn2023.0.1 ALAS2023-2024-542

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 docker-buildx 0.14.0-1 —
Azure Linux 3 docker-compose 2.27.0-1 —
Azure Linux 3 moby-engine 25.0.3-1 —
Azure Linux 2 (CBL-Mariner) moby-buildx 0.7.1-18 —
Azure Linux 2 (CBL-Mariner) moby-cli +1 20.10.27-3 —
Azure Linux 2 (CBL-Mariner) moby-compose 2.17.2-7 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling buildkitd 0.12.5-r0 —
Wolfi rolling docker-dind 25.0.2-r0 —
Wolfi rolling guac 0.4.0-r1 —
Wolfi rolling kaniko +3 1.20.1-r0 —
Wolfi rolling kubescape 3.0.3-r7 —
Wolfi rolling scorecard 4.13.1-r4 —
Wolfi rolling skaffold 2.11.0-r0 —
Wolfi rolling trivy +1 0.49.0-r1 —
Wolfi rolling zot 2.0.1-r2 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/moby/buildkit < 0.12.5 0.12.5 GHSA-wr6v-9f75-vh2g

Advisories 19

References