{"id":"CVE-2026-61712","state":"PUBLISHED","title":"BuildKit: Possible runtime DoS via unbounded group parsing","description":"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.","publishedAt":"2026-08-19T20:01:18.074Z","updatedAt":"2026-08-21T19:04:32.635Z","severity":{"score":2.3,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["moby buildkit"],"affected":[{"vendor":"moby","product":"buildkit","versions":[{"version":"< 0.31.1","status":"affected"}]}],"references":["https://github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86","https://github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1","https://github.com/moby/buildkit/commit/69a3924648e485acb3faad3081e03a8554431255","https://github.com/moby/buildkit/releases/tag/v0.31.1"],"weaknesses":["CWE-770"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/61xxx/CVE-2026-61712.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-61712","state":"PUBLISHED","datePublished":"2026-08-19T20:01:18.074Z","dateUpdated":"2026-08-21T19:04:32.635Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-10T18:51:13.920Z"},"containers":{"cna":{"title":"BuildKit: Possible runtime DoS via unbounded group parsing","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"moby","product":"buildkit","versions":[{"version":"< 0.31.1","status":"affected"}]}],"references":[{"url":"https://github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86","name":"https://github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1","name":"https://github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1","tags":["x_refsource_MISC"]},{"url":"https://github.com/moby/buildkit/commit/69a3924648e485acb3faad3081e03a8554431255","name":"https://github.com/moby/buildkit/commit/69a3924648e485acb3faad3081e03a8554431255","tags":["x_refsource_MISC"]},{"url":"https://github.com/moby/buildkit/releases/tag/v0.31.1","name":"https://github.com/moby/buildkit/releases/tag/v0.31.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":2.3,"baseSeverity":"LOW","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-770","lang":"en","description":"CWE-770: Allocation of Resources Without Limits or Throttling","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-19T20:01:18.074Z"},"source":{"advisory":"GHSA-72x6-4j93-7w86","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-21T19:04:21.592888Z","id":"CVE-2026-61712","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-21T19:04:32.635Z"}}]}}}