Skip to main content
Vulnerability Database/CVE-2026-93321

CVE-2026-93321: BuildKit Denial of Service Vulnerability

CVE-2026-93321 is a denial of service vulnerability in BuildKit where malicious frontends can crash the buildkitd daemon by submitting crafted LLB definitions. This article covers technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-93321 Overview

CVE-2026-93321 affects Moby BuildKit, the concurrent build toolkit used by Docker and other container platforms. A malicious frontend can submit a crafted Low-Level Build (LLB) definition that triggers a panic in buildkitd. The daemon terminates on panic, interrupting every build running on that instance. The flaw is categorized under improper validation of array index [CWE-129] and affects shared build environments where untrusted frontends may submit LLB graphs.

Critical Impact

Any build job sharing a buildkitd daemon with an attacker-controlled frontend can be forcibly terminated, producing a denial-of-service condition across concurrent builds.

Affected Products

  • Moby BuildKit (buildkitd) versions prior to v0.33.1
  • Container build pipelines using shared BuildKit daemons
  • CI/CD systems that accept LLB input from untrusted frontends

Discovery Timeline

  • 2026-10-05 - CVE-2026-93321 published to the National Vulnerability Database (NVD)
  • 2026-10-06 - Last updated in NVD database
  • BuildKit v0.33.1 - Fixed release published on GitHub

Technical Details for CVE-2026-93321

Vulnerability Analysis

BuildKit executes builds based on an LLB graph submitted by a frontend such as Dockerfile or a custom builder. The LLB definition describes operations, inputs, and dependencies that buildkitd resolves during execution. A malicious frontend can craft an LLB definition whose indices or references fall outside the bounds the daemon expects. When buildkitd dereferences those values, the Go runtime raises a panic that is not recovered on that code path. The daemon process exits, taking every concurrent build with it. The attacker does not need to escape sandboxing or achieve code execution; a single malformed request is sufficient to disrupt the entire daemon.

Root Cause

The underlying weakness is improper validation of array index [CWE-129] within LLB processing. The daemon trusts index or reference fields in the submitted definition without verifying they map to valid elements, triggering an out-of-range access.

Attack Vector

Exploitation requires the attacker to submit an LLB definition to a reachable buildkitd instance. No authentication or user interaction is required beyond frontend submission access. The attack is local to the daemon's control channel, which in shared CI/CD and multi-tenant builder environments can be reached by any tenant permitted to launch builds. Impact is limited to availability; confidentiality and integrity are unaffected. For technical specifics, refer to the GitHub Security Advisory GHSA-fjj4-h6vf-m9hj.

Detection Methods for CVE-2026-93321

Indicators of Compromise

  • Unexpected buildkitd process exits accompanied by Go runtime panic traces in daemon logs
  • Multiple concurrent builds failing simultaneously with transport or connection errors
  • Repeated LLB submissions from the same client immediately preceding daemon termination

Detection Strategies

  • Monitor buildkitd stderr and journal entries for panic: strings and goroutine stack traces
  • Correlate daemon restarts with the identity of the frontend or tenant that submitted the preceding build request
  • Alert on abnormal rates of build cancellations or context canceled errors across a build fleet

Monitoring Recommendations

  • Export BuildKit daemon uptime and restart counters to a central metrics backend and alert on unexpected restarts
  • Centralize buildkitd logs in a SIEM or data lake and apply queries that flag panics tied to LLB parsing functions
  • Track per-tenant build submission patterns to isolate frontends that correlate with daemon crashes

How to Mitigate CVE-2026-93321

Immediate Actions Required

  • Upgrade all buildkitd instances to v0.33.1 or later
  • Audit which frontends and tenants can submit LLB definitions to shared daemons
  • Enable automatic restart of buildkitd via the service manager to reduce outage duration if a crash occurs

Patch Information

The fix is included in BuildKit v0.33.1. Release notes and the patched binaries are available on the GitHub BuildKit Release v0.33.1 page. Container runtimes and CI platforms that bundle BuildKit should be updated to a version that ships v0.33.1 or later.

Workarounds

  • Restrict buildkitd access to trusted frontends only, using network policies or mutual TLS
  • Run isolated per-tenant buildkitd instances so a panic affects only the submitting tenant
  • Configure the service manager (for example systemd with Restart=always) to immediately relaunch buildkitd after a crash
bash
# Example systemd override to auto-restart buildkitd after a panic
sudo systemctl edit buildkit.service
# Add the following lines:
# [Service]
# Restart=always
# RestartSec=2s
sudo systemctl daemon-reload
sudo systemctl restart buildkit.service

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.