Live threats

All CVEs / Mobyproject

CVE-2024-23652Mobyproject Buildkit

Critical 9.1 No auth needed

Priority
70
CVSS 3.1
9.1
EPSS
1.6%
probability of exploitation in 30 days · percentile 76
Auth required
No
Published
Jan 31, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Buildkit.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/moby/buildkit < 0.12.5 0.12.5 go get github.com/moby/buildkit@v0.12.5
Go github.com/moby/buildkit < 0.12.5 0.12.5 go get github.com/moby/buildkit@v0.12.5

Per OSV / GitHub Advisories (GHSA-4v98-7qmw-rqr8, GO-2024-2494). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mobyprojectbuildkit< 0.12.5

Official sources

References

Links published by the sources. Open them with care.