CVE-2026-61712

NameCVE-2026-61712
DescriptionBuildKit 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1094971

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-github-moby-buildkitITP1094971

Notes

https://github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86
Fixed by: https://github.com/moby/buildkit/commit/69a3924648e485acb3faad3081e03a8554431255 (v0.31.1)
Fixed by: https://github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1 (v0.32.0-rc1)
check potential security impact on docker.io

Search for package or bug name: Reporting problems