Vulnerability · Published Aug 19, 2026 · Assigned by GitHub_M
CVE-2026-61712BuildKit: Possible runtime DoS via unbounded group parsing
Low 2.3
In plain English
A low-severity resource allocation without limits in buildkit from moby. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/moby/buildkit | 0.31.1 | GHSA-72x6-4j93-7w86 |
| Go | github.com/moby/buildkit | 0.31.1 | GO-2026-6256 |
Affected products (as reported)
Weakness: CWE-770 · 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
References
- https://github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86 x_refsource_CONFIRM
- https://github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1 x_refsource_MISC
- https://github.com/moby/buildkit/commit/69a3924648e485acb3faad3081e03a8554431255 x_refsource_MISC
- https://github.com/moby/buildkit/releases/tag/v0.31.1 x_refsource_MISC