CVE-2026-61711: BuildKit Custom Frontend Could Bypass Seccomp/AppArmor Vulnerability
MODERATECVE-2026-61711 is a MODERATE custom frontend could bypass seccomp/apparmor vulnerability (CWE-20: Improper Input Validation) affecting BuildKit libraries in the Go ecosystem. The issue involves custom frontend could bypass seccomp/apparmor. Remediation is available by upgrading affected packages to version 0.31.1.
CVE-2026-61711 at a Glance
How to Fix CVE-2026-61711
To remediate this vulnerability, upgrade all affected BuildKit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/moby/buildkit to 0.31.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/moby/buildkit
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-61711, inspect your project dependencies for BuildKit:
inspect dependencies for github.com/moby/buildkit
Analyze the terminal output to locate any version of BuildKit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.31.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In BuildKit, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-61711 Affected BuildKit Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/moby/buildkit
|
Go |
< 0.31.1
|
0.31.1
|
References
Frequently Asked Questions
What is CVE-2026-61711?
Which BuildKit versions are affected?
What version fixes CVE-2026-61711?
Is github.com/moby/buildkit affected?
What CWE is associated with CVE-2026-61711?
How can I check Go dependencies for CVE-2026-61711?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7236-3392-c5c6",
"modified" : "2026-08-19T20:23:50Z",
"published" : "2026-08-19T20:23:50Z",
"aliases" : [ "CVE-2026-61711" ],
"summary" : "BuildKit: Custom frontend could bypass Seccomp/AppArmor",
"details" : "### 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/moby/buildkit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.31.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.31.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/moby/buildkit/security/advisories/GHSA-7236-3392-c5c6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/moby/buildkit"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-19T20:23:50Z",
"nvd_published_at" : null
}
}