CVE-2026-61711
JSON

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 packageVersionsReported by
moby buildkit< 0.31.1CVE List
github.com/moby/buildkit (Go)before 0.31.1GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M5.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS: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

CWE-20

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

SourceRecordLicence
CVE ListCVE-2026-61711 changed 2026-08-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-7236-3392-c5c6 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-6255 changed 2026-09-01CC-BY-4.0
NVDCVE-2026-61711 changed 2026-09-09Public domain