Vulnerability
CVE-2026-61712
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.
93 advisories report this vulnerability, across 7 ecosystems.
Advisories in Wolfi
- 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