Improper Validation of Integrity Check Value Affecting github.com/moby/buildkit/client package, versions <0.33.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (6th 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-GITHUBCOMMOBYBUILDKITCLIENT-20826458
  • published11 Oct 2026
  • disclosed5 Oct 2026
  • creditktock

Introduced: 5 Oct 2026

NewCVE-2026-93318  (opens in a new tab)
CWE-354  (opens in a new tab)

How to fix?

Upgrade github.com/moby/buildkit/client to version 0.33.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Integrity Check Value via unvalidated image layer DiffIDs through the setBlob and snapshot identity handling in cache/blobs.go, cache/metadata.go, and cache/refs.go. An attacker can cause a later build to mount attacker-controlled layer contents as the base image by supplying a malicious image whose advertised DiffIDs match a victim image while the actual layer data differs. When a shared or persistent BuildKit cache processes that image first, subsequent builds may reuse the poisoned cache entry and execute code from the malicious layer, such as replacing a common path like /bin/sh. This can leak build secrets, alter build outputs, or hang the build, breaking the integrity and reliability of affected builds.

Workarounds

  • Do not share a BuildKit daemon cache between trusted and untrusted builds; use isolated BuildKit daemons or ephemeral builders for untrusted image sources so a malicious image cannot poison a later trusted build’s shared cache.
  • Prune BuildKit cache after processing untrusted images to remove any attacker-influenced cache entries before the daemon handles trusted builds.

CVSS Base Scores

version 4.0
version 3.1