CVE-2026-61711: BuildKit: Custom frontend could bypass Seccomp/AppArmor

Published Aug 19, 2026
·
Updated

Impact A custom frontend could send a crafted build request that disabled Seccomp and AppArmor protections for the build container, even if the user did not explicitly allow the security.insecure entitlement. Other security measures, like Linux capabilities were still applied to these containers.

Patches Problem has been fixed in versions v0.31.1+

Workarounds Only use BuildKit frontends from trusted providers.

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, a custom frontend could place an invalid SecurityMode value in a crafted build request, and executor/oci/speclinux.go treated the unsupported value as a non-sandbox mode without requiring the security.insecure entitlement. This disabled Seccomp and AppArmor protections for the build container even though Linux capabilities remained restricted. This issue is fixed in version 0.31.1.

MITRE

Affected Software

2 affected componentsFixes available
Moby 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 to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.31.1
  3. Compensating control

    Only use BuildKit frontends from trusted providers.

Event History

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

Frequently Asked Questions

1

What must an attacker control to exploit this issue?

They need to use a custom frontend that can submit a crafted build request containing an invalid SecurityMode value. The bypass does not require the security.insecure entitlement.

2

Which protections are lost if exploitation succeeds?

Seccomp and AppArmor protections for the build container can be disabled. Linux capabilities remain restricted.

3

What is the remediation?

Upgrade Moby BuildKit to version 0.31.1, which fixes the handling of unsupported SecurityMode values.

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