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

- Priority: **Routine**
- Reason: Not severe (CVSS 2.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-19 · Modified: 2026-08-21
- Aliases: CGA-27g8-m3xr-h7h9, CGA-2hx6-p7jp-jw37, CGA-2pv4-qrwp-xg3c, CGA-345w-fjxj-3f5w, CGA-477m-fwgm-29cj, CGA-56cq-gr7f-rcm8, CGA-6fjh-94gq-qrj5, CGA-79gx-ggc8-mhjx, CGA-9p76-2vr8-8hm6, CGA-c2v3-8hhr-fj64, CGA-c864-7v96-85c6, CGA-fp97-j83m-86fh, CGA-h62w-qqgm-wf3g, CGA-hrgv-gv3c-82pc, CGA-hww4-2fv4-qvg5, CGA-jh5h-gvj7-3cr8, CGA-jjcv-cjwp-wq53, CGA-jp8p-3jvv-fxq6, CGA-m556-hrhg-8w52, CGA-m69p-xfhj-6x38, CGA-mjcg-96gj-496m, CGA-pmch-q4gj-q8hw, CGA-qxhv-5v2h-4264, CGA-rhg3-pqf4-9p37, CGA-w3hf-j2gm-mjm7, CGA-w9w6-h328-rrp7, CGA-xxh2-fwm5-g822, GHSA-72x6-4j93-7w86, GO-2026-6256, CGA-29j4-8v5g-5pc5, CGA-2pf6-vqr8-rwhp, CGA-2x2x-p958-6vw9, CGA-32v2-v5v8-5jmf, CGA-33f9-hfqm-p4hm, CGA-3pwr-56ff-wp8j, CGA-3qw4-wc6j-w33j, CGA-4665-qqq2-4xpr, CGA-499j-h9wq-vvch, CGA-59mp-p6cp-w56f, CGA-5wcr-hp6x-3g9w, CGA-662j-2m57-3366, CGA-6736-g3hm-w66w, CGA-6p5r-7c53-pjg4, CGA-755x-q6g3-7f4f, CGA-7989-g6rr-8536, CGA-7c36-5ggp-4666, CGA-7g77-r8x7-q7g6, CGA-8862-62qv-wj56, CGA-8877-7cw7-458m, CGA-8c83-x7h5-7gwq, CGA-8cp6-6v69-57gj, CGA-8r27-hcmc-8pj3, CGA-92jp-4xfw-92gj, CGA-9jmq-9xww-8gjx, CGA-9q66-m3xh-6g44, CGA-c8rm-mxrq-957m, CGA-cg56-frq4-8phj, CGA-cq8q-wr23-wqr5, CGA-fjqm-j82m-6g3x, CGA-g76g-3932-8q5x, CGA-g8h2-44x5-4ww9, CGA-gwx7-9c7c-mvm2, CGA-gx8p-xvcv-44r7, CGA-hv27-7jq3-85wj, CGA-hxx9-g7fp-prp9, CGA-j95q-4p7w-wfcq, CGA-jfgp-w8xc-6rq8, CGA-jh82-w656-p35q, CGA-mh25-xwqw-9ppq, CGA-mp49-f7qc-47rx, CGA-p263-m3w4-qrg2, CGA-ppgv-w5f4-7cfj, CGA-q266-556p-wj69, CGA-q69g-7v54-848q, CGA-rh7f-jfjf-69r7, CGA-rhq2-6jch-5x4j, CGA-rjx5-7565-29w9, CGA-rv8x-pg6r-mmh7, CGA-v62f-6xjm-5mf7, CGA-vcgq-p88j-x49c, CGA-wcrm-99vx-grh5, CGA-x722-rjrq-3892, CGA-xh3r-jc7x-8v34, CGA-xj95-q8gc-622r, CGA-xqpg-vqwq-xjv2, CGA-xr39-f7x8-phvh, CGA-xwm9-g75j-7rx9, CGA-pxcw-c56r-646p
- Record: https://cvemate.com/vulnerability/CVE-2026-61712 · JSON: https://cvemate.com/vulnerability/CVE-2026-61712/json

## Description

```text
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.
```

## Signals

- CVSS: 2.3 low (v4.0, CVE.org) 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
- EPSS: 0.399%, percentile 36.181%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 55)

- chainguard cloudbeat-8.17 (Chainguard): All versions (No fix recorded)
- chainguard cloudbeat-9.2 (Chainguard): \< 9.2.8-r19
- chainguard cloudbeat-9.3 (Chainguard): \< 9.3.8-r5
- chainguard cloudbeat-9.4 (Chainguard): \< 9.4.5-r3
- chainguard cloudbeat-9.5 (Chainguard): \< 9.5.1-r3
- chainguard cloudbeat-fips-8.17 (Chainguard): All versions (No fix recorded)
- chainguard cloudbeat-fips-9.2 (Chainguard): \< 9.2.8-r18
- chainguard cloudbeat-fips-9.3 (Chainguard): \< 9.3.8-r6
- chainguard cloudbeat-fips-9.4 (Chainguard): \< 9.4.5-r3
- chainguard cloudbeat-fips-9.5 (Chainguard): \< 9.5.2-r0
- chainguard conftest (Chainguard): \< 0.69.0-r3
- chainguard conftest-fips (Chainguard): \< 0.69.0-r2
- chainguard dockerd-28 (Chainguard): All versions (No fix recorded)
- chainguard dockerd-fips-28 (Chainguard): All versions (No fix recorded)
- chainguard dockerd-fips-29 (Chainguard): \< 29.7.2-r0
- chainguard guac (Chainguard): \< 1.1.0-r28
- chainguard guacingest (Chainguard): \< 1.1.0-r28
- chainguard guacone (Chainguard): \< 1.1.0-r28
- chainguard kaniko (Chainguard): \< 1.25.18-r4
- chainguard kaniko-fips (Chainguard): \< 1.25.18-r2

## References

- <https://github.com/moby/buildkit/security/advisories/GHSA-72x6-4j93-7w86>
- <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/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61712.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-61712>
- <https://github.com/moby/buildkit>

---

Data as of 2026-12-05T05:19:11.513Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
