CVE-2026-61712: Github.com/moby/buildkit Denial of Service Vulnerability
LOWCVE-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.
CVE-2026-61712 at a Glance
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.
Upgrade github.com/moby/buildkit to 0.31.1
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
CVE-2026-61712 Affected Github.com/moby/buildkit Versions
1 component(s)| 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?
Which Github.com/moby/buildkit versions are affected?
What version fixes CVE-2026-61712?
Is github.com/moby/buildkit affected?
What CWE is associated with CVE-2026-61712?
How can I check Go dependencies for CVE-2026-61712?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}