{"id":"CVE-2026-61712","published":"2026-08-19T20:01:18Z","modified":"2026-08-21T19:04:32Z","title":"BuildKit: Possible runtime DoS via unbounded group parsing","vendor":"moby","product":"buildkit","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00399,"percentile":0.3495,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1","tags":["x_refsource_MISC"]},{"url":"https://github.com/moby/buildkit/commit/69a3924648e485acb3faad3081e03a8554431255","tags":["x_refsource_MISC"]},{"url":"https://github.com/moby/buildkit/releases/tag/v0.31.1","tags":["x_refsource_MISC"]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":6.99},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"moby","affectedVersions":[{"vendor":"moby","product":"buildkit","versions":["< 0.31.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-21T19:04:21.592888Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/moby/buildkit","vulnerableRanges":["<0.31.1"],"patched":["0.31.1"],"from":["GHSA-72x6-4j93-7w86","GO-2026-6256"],"provenance":"source"}],"summary":{"text":"BuildKit, the toolkit that converts source code into build artifacts, reads the /etc/passwd and /etc/group files from base images and builds without any size limit when resolving usernames and group names, so oversized files can exhaust memory and crash the buildkitd process. An attacker needs to supply a malicious base image or build, and a user has to build with it, with no authentication or network access required beyond that.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:29Z"},"euvd":{"id":"EUVD-2026-62837","exploited":false,"provenance":"source"}}