PortGate

Advisories · Docker & Containers

CVE-2024-23651 High CVSS 8.6

BuildKit mount race

Disclosed 2024 · Last reviewed 2 Dec 2026

A concurrent build could race a mount and read or write a path outside the build context.

What happened

Two build steps shared a mount without a consistent snapshot.

Affected and patched versions

Affected
BuildKit before 0.12.5, including the BuildKit used by Docker Buildx before that update.
Patched
BuildKit 0.12.5 and later.

How to check your server

Check

docker buildx version

How to fix and harden

  1. Upgrade Buildx and the buildkitd it uses to a release that contains BuildKit 0.12.5 or later.
  2. Do not leave a build daemon reachable on the network.

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