Description
The Dockerfile frontend loaded the Dockerfile and .dockerignore files of a build context into memory without a size limit. A build context containing an oversized file could make buildkitd allocate memory proportional to that file, potentially exhausting memory and terminating the daemon, which interrupts other builds on the same instance. Fixed by rejecting such files above 16 MiB.
Published: 2026-10-05
Score: 6.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Apply Patch
AI Analysis

Impact

The Dockerfile frontend of BuildKit loads the Dockerfile and .dockerignore files from a build context into memory without imposing a size limit. Supplying a build context that contains an oversized Dockerfile or .dockerignore can cause buildkitd to allocate memory proportional to the file size, potentially exhausting the daemon’s memory and causing it to terminate. This results in a denial‑of‑service to any other builds running on the same instance. The weakness is a classic unbounded memory allocation flaw (CWE-789).

Affected Systems

Affected systems are instances of the moby BuildKit component. The advisory does not specify exact vulnerable versions, but the fix that rejects files larger than 16 MiB was introduced in the 0.33.1 release, so versions earlier than that are potentially vulnerable.

Risk and Exploitability

The CVSS score of 6.8 reflects a medium severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a local attacker able to submit a build to the daemon. By providing a maliciously large Dockerfile or .dockerignore, the attacker can trigger a memory exhaustion that will terminate the daemon and disrupt all other builds. Given the lack of remote exploitation details, the risk is primarily localized to environments where untrusted build contexts are permitted.

Generated by OpenCVE AI on October 5, 2026 at 20:10 UTC.

Remediation

Vendor Workaround

Only build from trusted build contexts. Run buildkitd under a memory limit (cgroup or container limit) so exhaustion is contained to the daemon.


OpenCVE Recommended Actions

  • Update BuildKit to version 0.33.1 or later, which enforces the 16 MiB file size limit.
  • Run buildkitd with explicit memory limits, such as cgroup or container limits, to contain any potential exhaustion.
  • Limit build contexts to trusted sources and validate file sizes before sending them to BuildKit; reject files that exceed reasonable thresholds.

Generated by OpenCVE AI on October 5, 2026 at 20:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 05 Oct 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Moby
Moby buildkit
Vendors & Products Moby
Moby buildkit

Mon, 05 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 05 Oct 2026 18:00:00 +0000

Type Values Removed Values Added
Description The Dockerfile frontend loaded the Dockerfile and .dockerignore files of a build context into memory without a size limit. A build context containing an oversized file could make buildkitd allocate memory proportional to that file, potentially exhausting memory and terminating the daemon, which interrupts other builds on the same instance. Fixed by rejecting such files above 16 MiB.
Title Oversized Dockerfile or .dockerignore can exhaust buildkitd memory
Weaknesses CWE-789
References
Metrics cvssV4_0

{'score': 6.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Docker

Published:

Updated: 2026-10-05T18:47:42.179Z

Reserved: 2026-09-17T17:18:17.963Z

Link: CVE-2026-93323

cve-icon Vulnrichment

Updated: 2026-10-05T18:47:29.202Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-05T18:17:39.630

Modified: 2026-10-06T15:08:38.397

Link: CVE-2026-93323

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-05T22:00:10Z

Weaknesses
  • CWE-789

    Memory Allocation with Excessive Size Value