{"id":"CVE-2026-61711","aliases":["CVE-2026-61711","GHSA-7236-3392-c5c6","GO-2026-6255"],"related":["CGA-7w6w-pqpr-3rhw"],"kind":"vulnerability","state":"published","title":"BuildKit: Custom frontend could bypass Seccomp/AppArmor","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nA 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.\n\n### Patches\nProblem has been fixed in versions v0.31.1+\n\n### Workarounds\nOnly use BuildKit frontends from trusted providers.","format":"markdown","source":"ghsa"},{"lang":"en","text":"BuildKit: Custom frontend could bypass Seccomp/AppArmor in github.com/moby/buildkit","format":"markdown","source":"go"}],"published":"2026-08-19T20:03:38.250Z","modified":"2026-09-10T03:51:13.277Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":"< 0.31.1","status":"affected"}],"vendor":"moby","product":"buildkit","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.31.1"}],"ecosystem":"Go","package":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.31.1"}],"ecosystem":"Go","package":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","source":"go"}],"references":[{"url":"https://github.com/moby/buildkit/security/advisories/GHSA-7236-3392-c5c6","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/moby/buildkit/commit/3ea6dd0ce7d269cdb8aa23348718e2c1bf64f109","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/moby/buildkit/commit/64bbec89ca43dd95b2853edeca240c33c6729910","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/moby/buildkit/releases/tag/v0.31.1","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/moby/buildkit","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-20T13:17:33.733Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61711","url":"https://www.cve.org/CVERecord?id=CVE-2026-61711","licence":"CVE Terms of Use","modified":"2026-08-20T13:19:05.458Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7236-3392-c5c6","url":"https://github.com/advisories/GHSA-7236-3392-c5c6","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:13.277Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6255","url":"https://pkg.go.dev/vuln/GO-2026-6255","licence":"CC-BY-4.0","modified":"2026-09-01T21:56:11.324Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61711","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61711","licence":"Public domain","modified":"2026-09-09T21:15:59.613Z"}],"updatedAt":"2026-11-25T22:59:34.187Z","epss":{"score":0.00357,"percentile":0.31474,"date":"2026-12-01T12:00:22.000Z"}}