CVE-2026-61711
NoneCVSS
—
EPSS
0.4%
Published
Aug 19, 2026
CISA due date
—
Cloudanix analysis
A build tool flaw could let specially crafted requests run builds without key security protections, increasing the chance that malicious code escapes its container during the build process.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A custom frontend can supply an invalid SecurityMode value in a build request that executor/oci/spec_linux.go interprets as non-sandbox mode without the security.insecure entitlement, disabling Seccomp and AppArmor protections while leaving Linux capabilities restricted.
Why it matters to the business
Build pipelines using custom frontends may run containers with reduced kernel-level isolation, raising the risk of build-time escapes or unauthorized code execution that could compromise downstream artifacts and supply chains.
How an attack unfolds
An attacker crafts a build request containing an unsupported SecurityMode value through a custom frontend; the executor accepts it without entitlement checks, launches the container without Seccomp or AppArmor, and executes the build under weaker restrictions.
How to fix it
Upgrade BuildKit to version 0.31.1 or later; restrict use of custom frontends until the update is applied.
How to confirm the fix worked
Confirm the installed BuildKit binary reports version 0.31.1 or newer; attempt a build request with an invalid SecurityMode and verify it is rejected or requires the proper entitlement.
Typical attack path
- Craft a build request embedding an invalid SecurityMode value
- Submit the request via a custom frontend
- Executor treats the value as non-sandbox without requiring security.insecure
- Build container runs with Seccomp and AppArmor disabled
How to detect it
Inspect build request logs and frontend submissions for references to invalid or unsupported SecurityMode values; correlate with container runtime logs showing missing Seccomp or AppArmor profiles on build containers.
- invalid SecurityMode
- SecurityMode value
- security.insecure entitlement
- spec_linux.go
What your security team should do
- Immediately upgrade all BuildKit installations to 0.31.1
- Audit CI/CD pipelines for custom frontend usage and enforce entitlement requirements
- Add build request validation to block unsupported SecurityMode values
The record
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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-116654 Tanium addressed an improper input validation vulnerability in Threat Response. CWE-20
- CVE-2026-116653 Tanium addressed an improper input validation vulnerability in Threat Response. CWE-20
- CVE-2026-121240 Improper input validation in Variations in Google Chrome prior to 157.0.8103.38 allowed a… CWE-20
- CVE-2026-121242 Improper input validation in WebPackaging in Google Chrome prior to 157.0.8103.38 allowed… CWE-20
- CVE-2026-121236 Improper input validation in Network in Google Chrome prior to 157.0.8103.38 allowed a… CWE-20
- CVE-2026-121163 Improper input validation in Browser in Google Chrome prior to 157.0.8103.38 allowed a… CWE-20
- CVE-2026-121141 Improper input validation in Editing in Google Chrome prior to 157.0.8103.38 allowed a… CWE-20
- CVE-2026-121115 Improper input validation in Shopping in Google Chrome prior to 157.0.8103.38 allowed a… CWE-20