Low severity · published Aug 19, 2026
CVE-2026-61712
BuildKit: Possible runtime DoS via unbounded group parsing
2.3
CVSS
0.4%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 34% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BU
buildkit · moby
< 0.31.1 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-61712
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-61712
github.com
https://github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1
github.com
https://github.com/moby/buildkit/commit/69a3924648e485acb3faad3081e03a8554431255
github.com
https://github.com/moby/buildkit/releases/tag/v0.31.1
github.com
https://github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86
More from buildkit
9.8
CVE-2026-33747
BuildKit vulnerable to malicious frontend causing file escape outside of storage root
7.5
CVE-2026-93318
Cache poisoning via unvalidated image layer DiffIDs
7.5
CVE-2026-15793
Git source checkout from a bundle file could lead to command injection
7.5
CVE-2026-15792
Possible panic when incorrect parameters sent from frontend
7.5
CVE-2026-15791
LLB file operation can be tricked to remove /tmp directory contents
