CVE-2026-61711 PUBLISHED

BuildKit: Custom frontend could bypass Seccomp/AppArmor

Assigner: GitHub_M
Reserved: 10.07.2026 Published: 19.08.2026 Updated: 19.08.2026

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

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
CVSS Score: 5.3

Product Status

Vendor moby
Product buildkit
Versions
  • Version < 0.31.1 is affected

References

Problem Types

  • CWE-20: Improper Input Validation CWE