CVE-2026-15793: Moby BuildKit command injection in Git source checkout

CVE-2026-15793 · Severity: info · CVSS 7.3 · Published 2026-07-21

BuildKit is a toolkit used for converting source code into build artifacts like Docker images. A security flaw exists where specialized build tools or custom frontends using BuildKit's low-level interface can be tricked into executing unauthorized commands on the host system. This occurs when a build process interacts with a malicious Git repository, potentially allowing an attacker to gain control over the build environment.

Technologies: Moby Project BuildKit. Vendors: Moby Project.

Quick answers

Is CVE-2026-15793 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-15793 being exploited in the wild.
How severe is CVE-2026-15793?
Informational severity, with a CVSS score of 7.3, published 21 July 2026.
Which products and versions are affected?
Moby Project BuildKit v0.30.0 - v0.31.1.
Is there a fix for CVE-2026-15793?
A patch was published on 2026-07-21: Fix released in version 0.31.2 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-15793 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-15793?
Check whether you run Moby Project BuildKit at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A command injection vulnerability (CWE-88) exists in BuildKit when using the raw low-level API to check out Git sources. If a client or custom frontend sets the 'git.checkoutbundle=true' option, BuildKit may improperly neutralize argument delimiters when handling the Git source. An attacker providing a malicious Git repository can exploit this to achieve arbitrary command execution on the host running the BuildKit daemon. This vulnerability specifically affects versions v0.30.0 through v0.31.1 and requires the use of a custom frontend; standard Dockerfile builds are reportedly not affected. The issue is patched in version v0.31.2.

Affected products

  • Moby BuildKit v0.30.0 - v0.31.1

Timeline

  • 2026-07-16: advisory: GitHub advisory published by maintainers
  • 2026-07-21: disclosed: NVD publication date
  • 2026-07-21: patched: Fix released in version 0.31.2

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.