{"id":"CVE-2026-61712","aliases":["GHSA-72x6-4j93-7w86","GO-2026-6256"],"url":"https://o3.security/vulnerability/CVE-2026-61712","summary":"BuildKit: Possible runtime DoS via unbounded group parsing","details":"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.","published":"2026-08-19T20:01:18.074Z","modified":"2026-09-29T18:26:47.167760292Z","cvss":null,"epss":{"score":0.00404,"percentile":0.3328,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/moby/buildkit","fixedVersion":"0.31.1"}],"fix":{"url":"https://github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1","label":"moby/buildkit@408266e"},"references":[{"type":"WEB","url":"https://github.com/moby/buildkit/releases/tag/v0.31.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61712.json"},{"type":"ADVISORY","url":"https://github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61712"},{"type":"FIX","url":"https://github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1"},{"type":"FIX","url":"https://github.com/moby/buildkit/commit/69a3924648e485acb3faad3081e03a8554431255"},{"type":"PACKAGE","url":"https://github.com/moby/buildkit"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-29T18:26:47.167760292Z"}}