Skip to content
OpenAdvisories

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.

Affected products

VendorProductAffectedFixed
moby buildkit < 0.31.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
SLES 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 openSUSE-SU-2026:21761-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 runfinch-finch 1.19.0-1.amzn2023.0.1 ALAS2023-2026-3140

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 moby-engine 25.0.3-20 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling conftest 0.69.0-r3 —
Wolfi rolling dockerd-28 No fix yet —
Wolfi rolling guac +2 1.1.0-r28 —
Wolfi rolling kaniko +1 1.25.18-r4 —
Wolfi rolling kubescape 4.0.12-r6 —
Wolfi rolling podman-6.0 6.0.2-r5 —
Wolfi rolling scorecard 5.5.0-r17 —
Wolfi rolling skaffold 2.24.0-r7 —
Wolfi rolling trivy 0.74.0-r2 —
Wolfi rolling zot 2.1.20-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/moby/buildkit < 0.31.1 0.31.1 GHSA-72x6-4j93-7w86

Advisories 4

References