2.3low
BuildKit: Possible runtime DoS via unbounded group parsing
- Severity
- 2.3low CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.40% (higher than 36% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-72x6-4j93-7w86GO-2026-6256
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| moby buildkit | < 0.31.1 | CVE List |
| github.com/moby/buildkit (Go) | before 0.31.1 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 2.3low CVSS:4.0 | 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 |
| GitHub | low CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
Maliciously 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.
Patches
Issue is fixed in BuildKit v0.31.1+
Workarounds
Use trusted build sources.
References
This is BuildKit variant of containerd advisory https://github.com/containerd/containerd/security/advisories/GHSA-jpcc-p29g-p8mq
Go Vulnerability Database
BuildKit has a possible runtime DoS via unbounded group parsing in github.com/moby/buildkit
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-61712 changed 2026-08-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-72x6-4j93-7w86 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6256 changed 2026-09-01 | CC-BY-4.0 |
| NVD | CVE-2026-61712 changed 2026-09-09 | Public domain |