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.
Published: 2026-08-19
Score: 2.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

BuildKit performed unbounded parsing of the /etc/passwd and /etc/group files when resolving user and group identifiers. The lack of an upper bound allowed an attacker to supply oversized files, causing memory exhaustion and an out‑of‑memory termination of the buildkitd process. The effect is a denial of service that stops any builds in progress and may bring down continuous‑integration pipelines. This weakness is an instance of uncontrolled resource consumption, identified as CWE‑770.

Affected Systems

The vulnerability affects the BuildKit component of the Moby project. All installations running BuildKit prior to version 0.31.1 are susceptible. The issue resides in the executor/oci/user.go and solver/llbsolver/ops/user_linux.go modules of those affected releases.

Risk and Exploitability

The official CVSS score of 2.3 indicates a low severity for confidentiality, integrity, and availability, yet the attack results in a service interruption. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred from the description: an attacker who can influence the contents of a base image or build context must craft oversized /etc/passwd or /etc/group files. Because that requires a curated build environment, exploitation likelihood in the wild is low, but the impact on build availability can be significant for affected servers.

Generated by OpenCVE AI on August 20, 2026 at 11:48 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade BuildKit to version 0.31.1 or later to eliminate the unbounded parsing flaw.
  • Validate or restrict the size of /etc/passwd and /etc/group files in any base images or build contexts before using them.
  • Apply resource limits (e.g., cgroup memory limits) to the BuildKit daemon to mitigate potential memory exhaustion and isolate failures.

Generated by OpenCVE AI on August 20, 2026 at 11:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-72x6-4j93-7w86 BuildKit has a possible runtime DoS via unbounded group parsing
History

Tue, 01 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 21 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 19 Aug 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Moby
Moby buildkit
Vendors & Products Moby
Moby buildkit

Wed, 19 Aug 2026 20:15:00 +0000

Type Values Removed Values Added
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.
Title BuildKit: Possible runtime DoS via unbounded group parsing
Weaknesses CWE-770
References
Metrics cvssV4_0

{'score': 2.3, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-21T19:04:32.635Z

Reserved: 2026-07-10T18:51:13.920Z

Link: CVE-2026-61712

cve-icon Vulnrichment

Updated: 2026-08-21T19:04:28.327Z

cve-icon NVD

Status : Received

Published: 2026-08-19T20:17:19.730

Modified: 2026-08-21T20:16:38.010

Link: CVE-2026-61712

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-19T20:01:18Z

Links: CVE-2026-61712 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T12:00:04Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling