5.3medium
BuildKit: Custom frontend could bypass Seccomp/AppArmor
- Severity
- 5.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.36% (higher than 31% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-7236-3392-c5c6GO-2026-6255
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| moby buildkit | < 0.31.1 | CVE List |
| github.com/moby/buildkit (Go) | before 0.31.1 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 5.3medium CVSS:4.0 | 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 |
| GitHub | medium CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
Go Vulnerability Database
BuildKit: Custom frontend could bypass Seccomp/AppArmor in github.com/moby/buildkit
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-61711 changed 2026-08-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7236-3392-c5c6 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6255 changed 2026-09-01 | CC-BY-4.0 |
| NVD | CVE-2026-61711 changed 2026-09-09 | Public domain |