Medium severity · published Aug 19, 2026
CVE-2026-61711
BuildKit: Custom frontend could bypass Seccomp/AppArmor
5.3
CVSS
0.4%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 29% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BU
buildkit · moby
< 0.31.1 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-61711
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-61711
github.com
https://github.com/moby/buildkit/commit/3ea6dd0ce7d269cdb8aa23348718e2c1bf64f109
github.com
https://github.com/moby/buildkit/commit/64bbec89ca43dd95b2853edeca240c33c6729910
github.com
https://github.com/moby/buildkit/releases/tag/v0.31.1
github.com
https://github.com/moby/buildkit/security/advisories/GHSA-7236-3392-c5c6
More from buildkit
9.8
CVE-2026-33747
BuildKit vulnerable to malicious frontend causing file escape outside of storage root
7.5
CVE-2026-93318
Cache poisoning via unvalidated image layer DiffIDs
7.5
CVE-2026-15793
Git source checkout from a bundle file could lead to command injection
7.5
CVE-2026-15792
Possible panic when incorrect parameters sent from frontend
7.5
CVE-2026-15791
LLB file operation can be tricked to remove /tmp directory contents
