CVE-2026-61712
Published:August 19, 2026
Updated:September 24, 2026
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
https://github.com/moby/buildkit.git (GITHUB):
Affected version(s) >=v0.3.0 <v0.31.1Fix Suggestion:
Update to version v0.31.1github.com/moby/buildkit (GO):
Affected version(s) >=a1bf12f80604eda0f889dcd2670443402679ae52 <v0.31.1Fix Suggestion:
Update to version v0.31.1github.com/moby/buildkit (GO):
Affected version(s) >=v0.0.0-20151214135952-e09818357f19 <v0.31.1Fix Suggestion:
Update to version v0.31.1Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
2.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Weakness Type (CWE)
Allocation of Resources Without Limits or Throttling
EPSS
Base Score:
0.40