Vulnerability DatabaseCVE-2026-121522

CVE-2026-121522: 
Docker vulnerability analysis and mitigation

Overview

CVE-2026-121522 is a Denial of Service vulnerability in Moby BuildKit, the toolkit for building container images, caused by a possible panic in the Git source resolver. Affecting versions v0.26.0 through v0.34.1, a crafted build definition that resolves metadata for the same Git source reference twice can trigger a panic and crash the BuildKit daemon, interrupting all builds handled by that instance. The issue was disclosed on November 3, 2026, and fixed in v0.34.2. It carries a CVSS v3.1 base score of 5.5 (Medium) and a CVSS v4.0 base score of 6.7 (Medium) (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is classified as CWE-476 (NULL Pointer Dereference) and CWE-248 (Uncaught Exception), where the Git source resolver in BuildKit fails to handle the case where metadata for the same Git source reference is resolved more than once within a single build definition, leading to an unhandled panic. The attack vector is local, requiring user interaction (submission of a malicious build definition), with no privileges required. An attacker with the ability to submit build definitions — such as a developer or CI/CD pipeline user — can craft a Dockerfile or LLB definition that references the same Git source twice, triggering the daemon crash (GitHub Advisory, Red Hat Bugzilla).

Impact

Successful exploitation results in a crash of the BuildKit daemon, causing a Denial of Service that interrupts all builds currently handled by that daemon instance. There is no impact on confidentiality or integrity — only availability is affected. In environments where a single BuildKit daemon serves multiple users or CI/CD pipelines, a crash could disrupt all concurrent build operations until the daemon is restarted (GitHub Advisory, Red Hat Bugzilla).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.118%, indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation requires local access and the ability to submit build definitions, limiting the attack surface to trusted or semi-trusted users in build environments (GitHub Advisory).

Exploitation steps

  1. Identify target: Confirm the target environment is running BuildKit v0.26.0–v0.34.1 (e.g., via buildkitd --version or inspecting Docker/CI configuration).
  2. Craft malicious build definition: Create a Dockerfile or LLB build definition that references the same Git source URL and reference (branch/tag/commit) in two separate ADD, COPY --from, or source steps, causing the resolver to fetch metadata for the same Git reference twice.
  3. Submit the build: Trigger a build using the crafted definition via docker build, buildctl build, or a CI/CD pipeline that uses the vulnerable BuildKit daemon.
  4. Daemon crash: The BuildKit daemon encounters a NULL pointer dereference or uncaught exception during duplicate Git metadata resolution, panics, and crashes, interrupting all active builds on that daemon (GitHub Advisory, Red Hat Bugzilla).

Indicators of compromise

  • Logs: BuildKit daemon logs (buildkitd logs or Docker daemon logs) showing a Go panic stack trace referencing the Git source resolver, followed by an unexpected daemon exit.
  • Process: Sudden termination of the buildkitd process without a graceful shutdown signal; all in-progress builds reporting connection errors or failures simultaneously.
  • Build Output: Build clients receiving errors such as failed to solve: rpc error: code = Unavailable or similar gRPC connection-lost errors immediately after a build referencing duplicate Git sources is submitted.

Mitigation and workarounds

Upgrade BuildKit to v0.34.2 or later, which contains the fix for this vulnerability (GitHub Advisory). As a workaround, restrict the ability to submit build definitions to trusted users only, and avoid processing untrusted Dockerfiles or LLB definitions that reference Git sources. Auditing build definitions for duplicate Git source references before execution can also reduce risk (Red Hat Bugzilla).

Community reactions

The advisory was published by BuildKit maintainer tonistiigi on GitHub with a "Moderate" severity rating. Red Hat's Product Security team tracked the issue via Bugzilla with 117 CC'd users, indicating broad interest across Red Hat product lines that bundle BuildKit. No significant public social media discussion or independent researcher commentary has been observed beyond standard vulnerability aggregator coverage.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Ubuntu

Unknown

bionic (esm-apps)

docker.io

Unknown

devel

docker.io

Unknown

focal (esm-apps)

docker.io

Unknown

jammy

docker.io

Unknown

jammy (esm-apps)

docker.io

Unknown

noble

docker.io

Unknown

noble (esm-apps)

docker.io

Unknown

resolute

docker.io

Unknown

RHEL / CentOS

Affected

OpenShift

openshift-clients.src

Affected

RHEL 8

container-tools:rhel8/buildah.src

Affected

RHEL 9

buildah.src

Affected

RHEL 10

buildah.src

Affected

Source: This report was generated using AI

Related Docker vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-121522MEDIUM6.7
  • Docker logoDocker
  • container-tools:rhel8::buildah
NoNoNov 03, 2026
CVE-2026-97045MEDIUM6.1
  • Docker logoDocker
  • cilium-cli
NoYesOct 27, 2026
CVE-2026-121541MEDIUM5.6
  • Docker logoDocker
  • docker.io-app
NoNoNov 03, 2026
CVE-2026-121520MEDIUM4.5
  • Docker logoDocker
  • buildah-tests
NoNoNov 03, 2026
CVE-2026-121542LOW1.8
  • Docker logoDocker
  • docker-buildx
NoNoNov 03, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management