CVE-2026-61712: BuildKit: Possible runtime DoS via unbounded group parsing

Published Aug 19, 2026
·
Updated

Impact Maliciously crafted base image or build can cause a Denial of Service (DoS) condition. When creating a container from this image, memory exhaustion occurs, leading to an Out Of Memory (OOM) kill of the buildkitd process.

Patches Issue is fixed in BuildKit v0.31.1+

Workarounds Use trusted build sources.

References This is BuildKit variant of containerd advisory https://github.com/containerd/containerd/security/advisories/GHSA-jpcc-p29g-p8mq

Other sources

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/userlinux.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.

MITRE

Affected Software

2 affected componentsFixes available
Open Containers BuildKit<0.31.1
go/github.com/moby/buildkit<=0.31.0
0.31.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/moby/buildkit to a version that resolves this vulnerability.

    Fixed in 0.31.1
  2. Upgrade

    Upgrade BuildKit to a version that resolves this vulnerability.

    Fixed in 0.31.1
  3. Compensating control

    Use trusted build sources to prevent a malicious base image or build from exhausting memory and causing an OOM kill of the buildkitd process.

Event History

Aug 19, 2026
CVE Published
via MITRE·08:01 PM
Data Sourced
via MITRE·08:01 PM
DescriptionWeakness
Advisory Published
via GitHub·08:24 PM
Data Sourced
via GitHub·08:24 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Who can trigger this denial of service?

An attacker who can cause BuildKit to process a malicious base image or build can provide oversized /etc/passwd or /etc/group files. The issue is triggered when BuildKit resolves a username to a user or group identifier.

2

What is the impact on the BuildKit service?

Unbounded parsing of the attacker-controlled account files can exhaust memory and cause the buildkitd process to terminate due to an out-of-memory condition.

3

Which versions are affected and what is the remediation?

BuildKit versions prior to 0.31.1 are affected. Upgrade to version 0.31.1, which adds the fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203