
CVE-2024-23653 – BuildKit interactive containers API does not validate entitlements check
https://notcve.org/view.php?id=CVE-2024-23653
31 Jan 2024 — 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 in... • https://github.com/666asd/CVE-2024-23653 • CWE-863: Incorrect Authorization •

CVE-2024-23652 – BuildKit possible host system access from mount stub cleaner
https://notcve.org/view.php?id=CVE-2024-23652
31 Jan 2024 — BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. A malicious BuildKit frontend or Dockerfile using RUN --mount could trick the feature that removes empty files created for the mountpoints into removing a file outside the container, from the host system. The issue has been fixed in v0.12.5. Workarounds include avoiding using BuildKit frontends from an untrusted source or building an untrusted Dockerfile containing RUN --mount feature. Buil... • https://github.com/abian2/CVE-2024-23652 • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') •

CVE-2024-23651 – BuildKit possible race condition with accessing subpaths from cache mounts
https://notcve.org/view.php?id=CVE-2024-23651
31 Jan 2024 — 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=... • https://github.com/moby/buildkit/pull/4604 • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') •

CVE-2024-23650 – BuildKit possible panic when incorrect parameters sent from frontend
https://notcve.org/view.php?id=CVE-2024-23650
31 Jan 2024 — BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. A malicious BuildKit client or frontend could craft a request that could lead to BuildKit daemon crashing with a panic. The issue has been fixed in v0.12.5. As a workaround, avoid using BuildKit frontends from untrusted sources. BuildKit es un conjunto de herramientas para convertir código fuente para crear artefactos de manera eficiente, expresiva y repetible. • https://github.com/moby/buildkit/pull/4601 • CWE-754: Improper Check for Unusual or Exceptional Conditions •

CVE-2023-26054 – Credentials inlined to Git URLs could end up in provenance attestation in BuildKit
https://notcve.org/view.php?id=CVE-2023-26054
06 Mar 2023 — BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. In affected versions when the user sends a build request that contains a Git URL that contains credentials and the build creates a provenance attestation describing that build, these credentials could be visible from the provenance attestation. Git URL can be passed in two ways: 1) Invoking build directly from a URL with credentials. 2) If the client sends additional version control system ... • https://github.com/moby/buildkit/commit/75123c696506bdbca1ed69906479e200f1b62604 • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor •