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.
Published: 2026-08-19
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

BuildKit is a tool that compiles source code into build artifacts. Prior to version 0.31.1, a custom frontend could inject an invalid SecurityMode value into a build request. The executor logic treated this unsupported value as a non-sandbox mode without needing the security.insecure entitlement. This caused the Seccomp and AppArmor protections for the build container to be disabled while the container’s Linux capabilities remained restricted. Based on the disabling of those protections, it is inferred that the build container may run with less isolation than intended, potentially allowing it to perform privileged actions that would normally be blocked by the sandbox.

Affected Systems

Vendors: Moby BuildKit. Product: BuildKit. Versions before v0.31.1 are impacted. Users who employ custom frontends that can submit build requests containing an invalid SecurityMode value are at risk.

Risk and Exploitability

CVSS score 5.3 indicates moderate risk. EPSS score < 1% suggests low likelihood of exploitation. The vulnerability is not listed in CISA KEV. Exploitation requires an attacker to be able to submit a crafted build request through a custom frontend. Once processed, the build container runs without Seccomp or AppArmor, effectively elevating its privileges within the container. This flaw is limited to environments that permit custom frontends and use BuildKit prior to v0.31.1.

Generated by OpenCVE AI on September 1, 2026 at 14:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade BuildKit to version 0.31.1 or later.
  • Update or remove custom frontends to ensure they use only supported SecurityMode values; validate inputs before sending build requests.
  • Restrict access to the BuildKit API so that only trusted users or services can submit build requests, preventing untrusted payloads from exploiting the flaw.

Generated by OpenCVE AI on September 1, 2026 at 14:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-7236-3392-c5c6 BuildKit: Custom frontend could bypass Seccomp/AppArmor
History

Tue, 01 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-807
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'}

threat_severity

Moderate


Thu, 20 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 19 Aug 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Moby
Moby buildkit
Vendors & Products Moby
Moby buildkit

Wed, 19 Aug 2026 20:15:00 +0000

Type Values Removed Values Added
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.
Title BuildKit: Custom frontend could bypass Seccomp/AppArmor
Weaknesses CWE-20
References
Metrics cvssV4_0

{'score': 5.3, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-20T13:19:05.458Z

Reserved: 2026-07-10T18:51:13.920Z

Link: CVE-2026-61711

cve-icon Vulnrichment

Updated: 2026-08-20T13:18:55.856Z

cve-icon NVD

Status : Deferred

Published: 2026-08-19T20:17:19.567

Modified: 2026-09-09T21:15:59.613

Link: CVE-2026-61711

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-19T20:03:38Z

Links: CVE-2026-61711 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-01T14:30:18Z

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-807

    Reliance on Untrusted Inputs in a Security Decision