cve.bz

CVE-2026-61712 moby buildkit

2.3 lowEPSS 0.4%Fix available

Low (2.3) in moby buildkit. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/moby/buildkit 0.31.1.

On this page
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.

Severity

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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 35th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-61712 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-61712?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-61712?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-61712 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
moby buildkit< 0.31.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-72x6-4j93-7w86Gogithub.com/moby/buildkit<0.31.10.31.1
GO-2026-6256Gogithub.com/moby/buildkit<0.31.10.31.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0govulncheck-vulndb0.0.20260827T195228-160000.1.1SUSE-SU-2026:23625-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260827T195228-160000.1.1openSUSE-SU-2026:21761-1
Azure Linux3moby-engine25.0.3-20AZL-97029

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A moderate-impact denial of service flaw was found in BuildKit (github.com/moby/buildkit), a toolkit for converting source code into build artifacts that is vendored as a Go dependency by several Red Hat and community-maintained components. While resolving a user or group name to its identifier, BuildKit read the /etc/passwd and /etc/group files without an upper bound. An attacker able to supply a malicious base image or build input could provide oversized versions of these files, causing excessive memory consumption during user resolution and out-of-memory termination of the buildkitd process, resulting in a denial of service. Products that vendor the vulnerable BuildKit code are affected; for the affected community-maintained components in Fedora and EPEL, a fix is being pursued through the delegated maintenance process. Red Hat products whose builds do not contain the vulnerable code, such as Red Hat In-Vehicle OS podman and buildah, are not affected. Red Hat rates this flaw Moderate severity (CVSS 5.5, CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I/N/A:H), while the upstream CVE record assigns a Low severity score of 2.3 (CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L). The difference reflects upstream crediting the attack with partial prerequisites and required user interaction for a malicious base image or build, whereas the Red Hat assessment reflects a local, low-privilege build submission that directly causes high availability impact on the buildkitd process.

Red Hat's mitigation

To mitigate this issue, avoid building images from untrusted or unverified sources. If processing untrusted build definitions is necessary, consider implementing strict resource limits on build processes to prevent excessive memory consumption. This operational control helps contain the impact of potential memory exhaustion.

ProductPackageStateAdvisory
Assisted Installer for Red Hat OpenShift Container Platform 2assisted/agent-preinstall-image-builder-rhel9Out of support scope
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-controller-rhel9Out of support scope
Compliance Operatorcompliance/openshift-compliance-must-gather-rhel8Fix deferred
Confidential Compute Attestationbuild-of-trustee/trustee-must-gather-rhel9Fix deferred
Confidential Compute Attestationopenshift-sandboxed-containers/osc-must-gather-rhel9Fix deferred
Confidential Compute Attestationopenshift-sandboxed-containers/osc-podvm-builder-rhel9Fix deferred
Kernel Module Management Operator for Red Hat Openshiftkmm/kernel-module-management-must-gather-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-rhel9-operatorOut of support scope
Logical Volume Manager Storagelvms4/lvms-must-gather-rhel8Out of support scope
Logical Volume Manager Storagelvms4/lvms-must-gather-rhel9Fix deferred
Migration Toolkit for Applications 8mta/mta-cli-rhel9Fix deferred
Migration Toolkit for Applications 8mta/mta-discovery-addon-rhel9Fix deferred
Migration Toolkit for Containersrhmtc/openshift-migration-log-reader-rhel8Fix deferred
Migration Toolkit for Containersrhmtc/openshift-migration-must-gather-rhel8Fix deferred
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-must-gather-rhel8Fix deferred
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-must-gather-rhel9Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-controller-rhel8Out of support scope
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-controller-rhel9Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-service-8-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-service-9-rhel9Fix deferred
168 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-61712.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON