Vulnerabilities in pkg:golang/github.com/moby/buildkit

PACKAGE
Advisory Identifier: GHSA-72x6-4j93-7w86
Advisory Summary

CVE-2026-61712 is a LOW denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Github.com/moby/buildkit libraries in the Go ecosystem. The issue involves buildkit has a possible runtime dos via unbounded group parsing. Remediation is available by upgrading affected packages to version 0.31.1.

9 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/moby/buildkit

9 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/moby/buildkit. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-72x6-4j93-7w86 CVE-2026-61712 LOW BuildKit has a possible runtime DoS via unbounded group parsing
GHSA-7236-3392-c5c6 CVE-2026-61711 MODERATE BuildKit: Custom frontend could bypass Seccomp/AppArmor
GHSA-4vrq-3vrq-g6gg CVE-2026-33748 HIGH BuildKit Git URL subdir component can cause access to restricted files
GHSA-4c29-8rgm-jvjj CVE-2026-33747 HIGH BuildKit's Malicious frontend can cause file escape outside of storage root
GHSA-wr6v-9f75-vh2g CVE-2024-23653 CRITICAL Buildkit's interactive containers API does not validate entitlements check
GHSA-9p26-698r-w4hx CVE-2024-23650 MODERATE BuildKit vulnerable to possible panic when incorrect parameters sent from frontend
GHSA-4v98-7qmw-rqr8 CVE-2024-23652 CRITICAL BuildKit vulnerable to possible host system access from mount stub cleaner
GHSA-m3r6-h7wv-7xxv CVE-2024-23651 HIGH BuildKit vulnerable to possible race condition with accessing subpaths from cache mounts
GHSA-gc89-7gcr-jxqc CVE-2023-26054 MODERATE Buildkit credentials inlined to Git URLs could end up in provenance attestation

CVE-2026-61712 at a Glance

CVE Identifier CVE-2026-61712
GHSA Identifier GHSA-72x6-4j93-7w86
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Github.com/moby/buildkit
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-61712

To remediate this vulnerability, upgrade all affected Github.com/moby/buildkit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/moby/buildkit fixed: 0.31.1
Upgrade github.com/moby/buildkit to 0.31.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/moby/buildkit

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-61712, inspect your project dependencies for Github.com/moby/buildkit:

inspect dependencies for github.com/moby/buildkit

Analyze the terminal output to locate any version of Github.com/moby/buildkit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.31.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Github.com/moby/buildkit, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Maliciously crafted base image or build can cause a Denial of Service (DoS) condition. When creating a container from this image, memory exhaustion occurs, leading to an Out Of Memory (OOM) kill of the buildkitd process. ### Patches Issue is fixed in BuildKit v0.31.1+ ### Workarounds Use trusted build sources. ### References This is BuildKit variant of containerd advisory https://github.com/containerd/containerd/security/advisories/GHSA-jpcc-p29g-p8mq

CVE-2026-61712 Affected Github.com/moby/buildkit Versions

1 component(s)
Fixed Versions:
0.31.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/moby/buildkit
Go
< 0.31.1
0.31.1

References

Frequently Asked Questions

What is CVE-2026-61712?
CVE-2026-61712 is a security vulnerability in Github.com/moby/buildkit involving BuildKit has a possible runtime DoS via unbounded group parsing under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Github.com/moby/buildkit versions are affected?
Affected versions include releases prior to 0.31.1 across affected packages: github.com/moby/buildkit.
What version fixes CVE-2026-61712?
Upgrading to 0.31.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/moby/buildkit affected?
Yes, github.com/moby/buildkit is affected in releases prior to 0.31.1. Upgrade your dependency to 0.31.1 or later.
What CWE is associated with CVE-2026-61712?
CVE-2026-61712 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Go dependencies for CVE-2026-61712?
Run the dependency tree command: 'inspect dependencies for github.com/moby/buildkit'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-72x6-4j93-7w86",
  "modified" : "2026-08-19T20:24:01Z",
  "published" : "2026-08-19T20:24:01Z",
  "aliases" : [ "CVE-2026-61712" ],
  "summary" : "BuildKit has a possible runtime DoS via unbounded group parsing",
  "details" : "### Impact\nMaliciously crafted base image or build can cause a Denial of Service (DoS) condition. When creating a container from this image, memory exhaustion occurs, leading to an Out Of Memory (OOM) kill of the buildkitd process.\n\n### Patches\nIssue is fixed in BuildKit v0.31.1+\n\n### Workarounds\nUse trusted build sources.\n\n### References\nThis is BuildKit variant of containerd advisory https://github.com/containerd/containerd/security/advisories/GHSA-jpcc-p29g-p8mq",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/moby/buildkit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.31.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.31.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moby/buildkit/commit/69a3924648e485acb3faad3081e03a8554431255"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/moby/buildkit"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moby/buildkit/releases/tag/v0.31.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-19T20:24:01Z",
    "nvd_published_at" : null
  }
}