CVE-2026-61712: Moby Buildkit

Low severity, CVSS 2.3. EPSS: 0.5% probability of exploitation activity in the next 30 days.

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.

What to do

The record states a fixed version for the versions it affects. If you run one, update to it.

  • Moby Buildkit, before 0.31.1: fixed in 0.31.1

Affected products

Affected packages

Published 2026-08-19. Last modified 2026-09-09.