ADVISORIES

Vulnerability

CVE-2024-23651

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Two malicious build steps running in parallel sharing the same cache mounts with subpaths could cause a race condition that can lead to files from the host system being accessible to the build container. The issue has been fixed in v0.12.5. Workarounds include, avoiding using BuildKit frontend from an untrusted source or building an untrusted Dockerfile containing cache mounts with --mount=type=cache,source=... options.

65 advisories report this vulnerability, across 9 ecosystems.

Advisories

  • ALAS2023-2024-542

    Amazon Linux 2023 - ALAS2023-2024-542: Important priority package update for docker

    Important CVE-2023-39326CVE-2023-45289CVE-2024-23650CVE-2024-23651 Amazon Linux Updated 28 August 2024
  • ALPINE-CVE-2024-23651

    BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Two malicious build steps running in parallel sharing the same cache mounts with subpaths could…

    CVE-2024-23651 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2024-23651
    CVE-2024-23651 Alpine Updated 18 November 2026
  • AZL-34085

    CVE-2024-23651 affecting package moby-engine for versions less than 20.10.27-4

    CVE-2024-23651 Azure Linux Updated 21 April 2026
  • AZL-35005

    CVE-2024-23651 affecting package moby-engine for versions less than 25.0.3-1

    CVE-2024-23651 Azure Linux Updated 21 April 2026
  • CGA-37vp-p2q7-rcx6
    CVE-2024-23651 ChainguardWolfi Updated 27 October 2026
  • CGA-3gcq-q46c-rrcp
    CVE-2024-23651 ChainguardWolfi Updated 11 September 2026
  • CGA-497w-wj5g-vf78
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-4c6v-jx3w-jrp3
    CVE-2024-23651 ChainguardWolfi Updated 11 September 2026
  • CGA-5fwv-88qx-x3wj
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-69mp-c8q4-3j2j
    CVE-2024-23651 ChainguardWolfi Updated 11 September 2026
  • CGA-7pf6-4pjw-9jh4
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-7vjf-wfvg-6gw7
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-84c7-7593-jpq2
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-8fc2-fcw4-357r
    CVE-2024-23651 ChainguardWolfi Updated 11 September 2026
  • CGA-8jfw-93xh-7q5f
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-8xmf-5vv5-gv8r
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-94pg-5gqv-jvcc
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-97p7-4phq-9f6x
    CVE-2024-23651 ChainguardWolfi Updated 11 September 2026
  • CGA-c5gr-8x83-726w
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-f25m-x5hp-qfjj
    CVE-2024-23651 ChainguardWolfi Updated 11 September 2026
  • CGA-f3fm-mg9g-hxwg
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-fqv8-3w2f-mf3w
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-fwfp-r536-wxcv
    CVE-2024-23651 ChainguardWolfi Updated 11 September 2026
  • CGA-g7f9-xpmp-223h
    CVE-2024-23651 Chainguard Updated 5 November 2026
  • CGA-gmf8-x9rw-hmc8
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-gw42-vx6g-6qc3
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-hjg8-2x7m-jh2h
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-hjx8-4669-5wqx
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-jq3r-3wcm-hh9q
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-m6w4-gvfw-w5fh
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-m7jv-mfrf-55wm
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-mc5m-6v7r-4c7r
    CVE-2024-23651 ChainguardWolfi Updated 11 September 2026
  • CGA-mv5c-v96c-gvc6
    CVE-2024-23651 ChainguardWolfi Updated 11 September 2026
  • CGA-mxpp-2q4x-3qf9
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-p637-rmgq-5cgq
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-p8hp-rhf3-33w8
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-pwr5-q6vc-82mr
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-pxwf-p877-gx2g
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-q32w-8mxq-5qfw
    CVE-2024-23651 ChainguardWolfi Updated 11 September 2026
  • CGA-vvwc-4wv3-7f2v
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-w2pj-8q36-p7vj
    CVE-2024-23651 ChainguardWolfi Updated 11 September 2026
  • CGA-wgc4-3m99-rpm8
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-wp54-hxxf-7874
    CVE-2024-23651 ChainguardWolfi Updated 11 September 2026
  • CGA-wp75-2cw4-83gp
    CVE-2024-23651 ChainguardWolfi Updated 5 November 2026
  • CGA-wxrc-xx2f-6v4g
    CVE-2024-23651 ChainguardWolfi Updated 27 October 2026
  • CGA-x3vh-hfrc-78m7
    CVE-2024-23651 Chainguard Updated 5 November 2026
  • GHSA-m3r6-h7wv-7xxv

    BuildKit vulnerable to possible race condition with accessing subpaths from cache mounts

    High CVE-2024-23651 Go Updated 10 September 2026
  • GO-2024-2493

    Host system file access in github.com/moby/buildkit

    CVE-2024-23651 Go Updated 4 February 2026
  • SUSE-SU-2024:0586-1

    Security update for docker

    CVE-2024-23651CVE-2024-23652CVE-2024-23653 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2024:0586-2

    Security update for docker

    CVE-2024-23651CVE-2024-23652CVE-2024-23653 SUSE Updated 4 February 2026
  • SUSE-SU-2024:0587-1

    Security update for docker

    CVE-2024-23651CVE-2024-23652CVE-2024-23653 SUSE Updated 4 February 2026
  • SUSE-SU-2024:1469-1

    Security update for docker

    CVE-2024-23651CVE-2024-23652CVE-2024-23653 SUSE Updated 4 February 2026
  • SUSE-SU-2024:3120-1

    Security update for buildah, docker

    CVE-2024-1753CVE-2024-23651CVE-2024-23652CVE-2024-23653 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2025:03540-1

    Security update for docker-stable

    CVE-2014-3499CVE-2014-5277CVE-2014-6407CVE-2014-6408 SUSE Updated 4 February 2026
  • SUSE-SU-2025:03545-1

    Security update for docker-stable

    CVE-2014-3499CVE-2014-5277CVE-2014-6407CVE-2014-6408 SUSEopenSUSE Updated 23 March 2026
  • SUSE-SU-2025:20056-1

    Security update for docker

    CVE-2024-23651CVE-2024-23652CVE-2024-23653CVE-2024-41110 SUSE Updated 23 March 2026
  • SUSE-SU-2025:20107-1

    Security update for buildkit

    CVE-2024-23651CVE-2024-23652CVE-2024-23653 SUSE Updated 23 March 2026
  • SUSEVEX-CVE-2024-23651

    BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Two malicious build steps running in parallel sharing the same cache mounts with subpaths could…

    Important CVE-2024-23651 SUSE Updated 16 October 2026
  • UBUNTU-CVE-2024-23651

    BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Two malicious build steps running in parallel sharing the same cache mounts with subpaths could…

    CVE-2024-23651 Ubuntu Updated 4 February 2026
  • USN-7474-1

    docker.io vulnerabilities

    CVE-2023-28840CVE-2023-28841CVE-2023-28842CVE-2024-23651 Ubuntu Updated 27 April 2026
  • openSUSE-SU-2024:13651-1

    buildkit-0.12.5-1.1 on GA media

    CVE-2024-23651CVE-2024-23652 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:13689-1

    docker-24.0.7_ce-3.1 on GA media

    CVE-2024-23651CVE-2024-23652CVE-2024-23653 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14059-1

    singularity-ce-4.1.3-1.1 on GA media

    CVE-2022-23538CVE-2022-39237CVE-2024-21626CVE-2024-23650 openSUSE Updated 4 February 2026
  • openSUSE-SU-2025:15589-1

    docker-stable-24.0.9_ce-15.1 on GA media

    CVE-2014-3499CVE-2014-5277CVE-2014-6407CVE-2014-6408 openSUSE Updated 23 March 2026

References