{"id":"CVE-2026-61712","aliases":["CVE-2026-61712","GHSA-72x6-4j93-7w86","GO-2026-6256"],"related":["CGA-wv54-vpgj-v2jq"],"kind":"vulnerability","state":"published","title":"BuildKit: Possible runtime DoS via unbounded group parsing","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nMaliciously crafted base image or build can cause a Denial of Service (DoS) condition. When creating a container from this image, memory exhaustion occurs, leading to an Out Of Memory (OOM) kill of the buildkitd process.\n\n### Patches\nIssue is fixed in BuildKit v0.31.1+\n\n### Workarounds\nUse trusted build sources.\n\n### References\nThis is BuildKit variant of containerd advisory https://github.com/containerd/containerd/security/advisories/GHSA-jpcc-p29g-p8mq","format":"markdown","source":"ghsa"},{"lang":"en","text":"BuildKit has a possible runtime DoS via unbounded group parsing in github.com/moby/buildkit","format":"markdown","source":"go"}],"published":"2026-08-19T20:01:18.074Z","modified":"2026-09-10T03:51:13.226Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":2.3,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":2.3,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"LOW"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"< 0.31.1","status":"affected"}],"vendor":"moby","product":"buildkit","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.31.1"}],"ecosystem":"Go","package":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.31.1"}],"ecosystem":"Go","package":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","source":"go"}],"references":[{"url":"https://github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/moby/buildkit/commit/69a3924648e485acb3faad3081e03a8554431255","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/moby/buildkit/releases/tag/v0.31.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/moby/buildkit","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-21T19:04:21.592Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61712","url":"https://www.cve.org/CVERecord?id=CVE-2026-61712","licence":"CVE Terms of Use","modified":"2026-08-21T19:04:32.635Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-72x6-4j93-7w86","url":"https://github.com/advisories/GHSA-72x6-4j93-7w86","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:13.226Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6256","url":"https://pkg.go.dev/vuln/GO-2026-6256","licence":"CC-BY-4.0","modified":"2026-09-01T21:56:10.777Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61712","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61712","licence":"Public domain","modified":"2026-09-09T21:15:59.613Z"}],"updatedAt":"2026-11-25T22:59:34.188Z","epss":{"score":0.00399,"percentile":0.36195,"date":"2026-12-01T12:00:22.000Z"}}