Memory Allocation with Excessive Size Value Affecting github.com/moby/buildkit/frontend/dockerui 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.11% (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-GITHUBCOMMOBYBUILDKITFRONTENDDOCKERUI-20826447
  • published11 Oct 2026
  • disclosed5 Oct 2026
  • creditaqueel707

Introduced: 5 Oct 2026

NewCVE-2026-93323  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value due to unbounded file reads in ReadEntrypoint, dockerIgnorePatterns, and NamedContext.load in frontend/dockerui/config.go and frontend/dockerui/namedcontext.go. An attacker can exhaust buildkitd memory and terminate the daemon by supplying an oversized Dockerfile or .dockerignore in a build context. This interrupts builds on the affected instance and can take down other concurrent builds that share the same daemon.

Workarounds

  • Only build from trusted build contexts.
  • Run buildkitd under a memory limit such as a cgroup or container memory limit, so any memory exhaustion stays contained to the daemon and does not take down other concurrent builds.

CVSS Base Scores

version 4.0
version 3.1