{"cve":"CVE-2026-61712","nvd":{"published":"2026-08-19T20:17:19.730","modified":"2026-09-09T21:15:59.613","status":"Deferred","description":"BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Prior to 0.31.1, BuildKit read attacker-controlled /etc/passwd and /etc/group files without an upper bound while resolving a username to a user identifier or group identifier in executor/oci/user.go and solver/llbsolver/ops/user_linux.go. A malicious base image or build could provide oversized files that exhausted memory during user resolution and caused out-of-memory termination of the buildkitd process. This issue is fixed in version 0.31.1.","cvss_v4":{"vector":"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","score":2.3},"cvss_v3":null,"cwes":["CWE-770"],"references":["https://github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1","https://github.com/moby/buildkit/commit/69a3924648e485acb3faad3081e03a8554431255","https://github.com/moby/buildkit/releases/tag/v0.31.1","https://github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:49:38.260478770+00:00"},"epss":{"cve":"CVE-2026-61712","score":0.00399,"percentile":0.34096,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-72x6-4j93-7w86","url":"https://osv.dev/vulnerability/GHSA-72x6-4j93-7w86","summary":"BuildKit has a possible runtime DoS via unbounded group parsing","modified":"2026-09-10T03:51:13.226978985Z","packages":[{"ecosystem":"Go","name":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","ranges":["<0.31.1"],"fixed":["0.31.1"]}]},{"id":"GO-2026-6256","url":"https://osv.dev/vulnerability/GO-2026-6256","summary":"BuildKit has a possible runtime DoS via unbounded group parsing in github.com/moby/buildkit","modified":"2026-09-01T21:56:10.777895866Z","packages":[{"ecosystem":"Go","name":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","ranges":["<0.31.1"],"fixed":["0.31.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}