# CVE-2026-61712: BuildKit: Possible runtime DoS via unbounded group parsing

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-08-19T20:01:18.074Z
- Modified: 2026-09-10T03:51:13.226Z
- Also known as: GHSA-72x6-4j93-7w86, GO-2026-6256
- Related: CGA-wv54-vpgj-v2jq
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- moby buildkit: < 0.31.1
- github.com/moby/buildkit (Go): before 0.31.1

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `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`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86> (advisory, web)
- <https://github.com/moby/buildkit/commit/408266e4ba254cecabedaacdad6905de4d2a75a1> (fix, web)
- <https://github.com/moby/buildkit/commit/69a3924648e485acb3faad3081e03a8554431255> (fix, web)
- <https://github.com/moby/buildkit/releases/tag/v0.31.1> (web)
- <https://github.com/moby/buildkit> (package)

## Sources

- CVE List: [CVE-2026-61712](https://www.cve.org/CVERecord?id=CVE-2026-61712), CVE Terms of Use, modified 2026-08-21
- GitHub Advisory Database: [GHSA-72x6-4j93-7w86](https://github.com/advisories/GHSA-72x6-4j93-7w86), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-6256](https://pkg.go.dev/vuln/GO-2026-6256), CC-BY-4.0, modified 2026-09-01
- NVD: [CVE-2026-61712](https://nvd.nist.gov/vuln/detail/CVE-2026-61712), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-61712 · Whole record: https://cve.day/CVE-2026-61712.json · Rebuilt by cve.day 2026-11-25T22:59:34.188Z
