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.

Severity (CVSS 4.0)2.3Low
Exploit odds (30 days)0.4%top 65.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogithub.com/moby/buildkit0.31.1GHSA-72x6-4j93-7w86
Gogithub.com/moby/buildkit0.31.1GO-2026-6256

Affected products (as reported)

VendorProductVersions
moby buildkit < 0.31.1

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