---
id: CVE-2026-121522
title: Possible panic from Git source resolver
summary: >-
  In BuildKit versions v0.26.0 through v0.34.1, a specific build definition that
  resolves metadata for the same Git source reference twice can cause the
  BuildKit daemon to panic and crash, interrupting builds handled by that
  daemon. The is…
severity: medium
cvss: 6.7
cvssVector: 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'
cvssSource: cna
cwe:
  - CWE-476
vendor: moby
product: github.com/moby/buildkit
affected:
  - github.com/moby/buildkit >= 0.26.0 < 0.34.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-06T19:31:23.734747Z'
published: '2026-11-03'
updated: '2026-11-06'
sourceUpdated: '2026-11-06T19:31:52.954Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-121522'
references:
  - url: 'https://github.com/moby/buildkit/security/advisories/GHSA-2fqp-xg6f-v7gj'
tags:
  - cve.org
epss: 0.00118
epssPercentile: 0.01714
ingestedAt: '2026-11-05T20:33:06.570Z'
---

## Overview

In BuildKit versions v0.26.0 through v0.34.1, a specific build definition that resolves metadata for the same Git source reference twice can cause the BuildKit daemon to panic and crash, interrupting builds handled by that daemon. The issue is fixed in v0.34.2.

## Affected

- `github.com/moby/buildkit >= 0.26.0 < 0.34.2`

## Remediation

Upgrade BuildKit to v0.34.2 or later.

### Workarounds

Avoid untrusted build definitions. Only specific builds using Git dependencies trigger this issue.
