Improper Validation of Array Index Affecting github.com/moby/buildkit/solver/llbsolver/ops package, versions <0.33.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMMOBYBUILDKITSOLVERLLBSOLVEROPS-20826474
  • published11 Oct 2026
  • disclosed5 Oct 2026
  • creditYanhaoxi

Introduced: 5 Oct 2026

NewCVE-2026-93322  (opens in a new tab)
CWE-129  (opens in a new tab)

How to fix?

Upgrade github.com/moby/buildkit/solver/llbsolver/ops to version 0.33.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Array Index due to missing MergeOp input-count validation in the solver/llbsolver/ops merge processing path. An attacker can crash buildkitd by supplying a crafted LLB definition with a malformed MergeOp whose inner inputs do not match the enclosing vertex input count, triggering a panic during cache map scheduling. This affects builds handled by the daemon for untrusted external frontends: a malicious frontend can send the malformed graph and terminate all builds served by that buildkitd instance.

Workarounds

  • Avoid using external BuildKit frontends from untrusted sources; this prevents a malicious frontend from submitting a crafted LLB MergeOp that can crash buildkitd.
  • Use Dockerfile builds instead of external frontends; Dockerfile builds are unaffected by this issue and avoid the malformed MergeOp attack path.

CVSS Base Scores

version 4.0
version 3.1