Cloudanix VulnDB

CVE-2026-61711

None

CVSS

—

EPSS

0.4%

Published

Aug 19, 2026

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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

  1. Craft a build request embedding an invalid SecurityMode value
  2. Submit the request via a custom frontend
  3. Executor treats the value as non-sandbox without requiring security.insecure
  4. 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