CVE-2026-61712
BuildKit is a toolkit for converting source code to build artifacts …
BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Prior to 0.31.1, BuildKit read attacker-controlled /etc/passwd and /etc/group files without an upper bound while resolving a username to a user identifier or group identifier in executor/oci/user.go and solver/llbsolver/ops/user_linux.go. A malicious base image or build could provide oversized files that exhausted memory during user resolution and caused out-of-memory termination of the buildkitd process. This issue is fixed in version 0.31.1.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1
- github.com/moby/buildkit/commit/69a3924648e485acb3faad3081e03a8554431255
- github.com/moby/buildkit/releases/tag/v0.31.1
- github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86
- github.com/advisories/GHSA-72x6-4j93-7w86
- nvd.nist.gov/vuln/detail/CVE-2026-61712
- cve.org/CVERecord?id=CVE-2026-61712
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.