CVE-2026-93323

Oversized Dockerfile or .dockerignore can exhaust buildkitd memory

Published Oct 5, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
First Time appeared Moby
Moby buildkit
Vendors & Products Moby
Moby buildkit
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-789

    Memory Allocation with Excessive Size Value

Sources

Status
PUBLISHED
Assigner
Docker
Published
Updated
Oct 5, 2026, 6:47 PM
Reserved
Sep 17, 2026, 5:18 PM
Status
Awaiting Analysis
Published
Oct 5, 2026, 6:17 PM
Modified
Oct 6, 2026, 3:08 PM