GHSA-72x6-4j93-7w86: Go/github.com/moby/buildkit vulnerability

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

Affected Software

1 affected componentFixes available
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.

Event History

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

Frequently Asked Questions

1

Who is exposed to this denial-of-service condition?

BuildKit environments that create containers from maliciously crafted base images or builds are exposed. Successful exploitation can exhaust memory and cause the buildkitd process to be killed by the operating system.

2

What does an attacker need to exploit this issue?

An attacker needs to cause BuildKit to process a maliciously crafted base image or build. The advisory does not describe any additional authentication, network, or local-access prerequisites.

3

What should teams do if they cannot upgrade immediately?

Use only trusted build sources and base images until BuildKit can be updated. The issue is fixed in BuildKit v0.31.1 and later.

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