CVE-2026-61712: CWE-770: Allocation of Resources Without Limits or Throttling in moby buildkit
CVE-2026-61712 is a low-severity vulnerability in moby buildkit prior to version 0.31.1. The issue involves BuildKit reading attacker-controlled /etc/passwd and /etc/group files without limits while resolving user and group identifiers. Maliciously crafted oversized files can exhaust memory and cause the buildkitd process to terminate due to out-of-memory conditions. This vulnerability has been fixed in version 0.31.1.
AI Analysis
Technical Summary
BuildKit versions before 0.31.1 improperly handle user resolution by reading /etc/passwd and /etc/group files without imposing size limits. An attacker can supply oversized versions of these files via a malicious base image or build context, causing excessive memory consumption and termination of the buildkitd process due to out-of-memory conditions. The flaw is classified under CWE-770 (Allocation of Resources Without Limits or Throttling). The issue is resolved in BuildKit version 0.31.1.
Potential Impact
An attacker capable of influencing the base image or build context can cause the buildkitd process to consume excessive memory and terminate unexpectedly. This results in denial of service of the build process. There is no indication of privilege escalation, code execution, or data disclosure from this vulnerability.
Mitigation Recommendations
Upgrade BuildKit to version 0.31.1 or later, where this issue is fixed. No other mitigation is required as the vulnerability is resolved in the official patch.
CVE-2026-61712: CWE-770: Allocation of Resources Without Limits or Throttling in moby buildkit
Description
CVE-2026-61712 is a low-severity vulnerability in moby buildkit prior to version 0.31.1. The issue involves BuildKit reading attacker-controlled /etc/passwd and /etc/group files without limits while resolving user and group identifiers. Maliciously crafted oversized files can exhaust memory and cause the buildkitd process to terminate due to out-of-memory conditions. This vulnerability has been fixed in version 0.31.1.
CVSS v4.0
Score 2.3low
Affected software
moby
buildkit
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
BuildKit versions before 0.31.1 improperly handle user resolution by reading /etc/passwd and /etc/group files without imposing size limits. An attacker can supply oversized versions of these files via a malicious base image or build context, causing excessive memory consumption and termination of the buildkitd process due to out-of-memory conditions. The flaw is classified under CWE-770 (Allocation of Resources Without Limits or Throttling). The issue is resolved in BuildKit version 0.31.1.
Potential Impact
An attacker capable of influencing the base image or build context can cause the buildkitd process to consume excessive memory and terminate unexpectedly. This results in denial of service of the build process. There is no indication of privilege escalation, code execution, or data disclosure from this vulnerability.
Mitigation Recommendations
Upgrade BuildKit to version 0.31.1 or later, where this issue is fixed. No other mitigation is required as the vulnerability is resolved in the official patch.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-10T18:51:13.920Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a86109dacd9273b4993ac9f
Added to database: 08/19/2026, 20:22:53 UTC
Last enriched: 09/11/2026, 07:33:27 UTC
Last updated: 10/03/2026, 02:46:06 UTC
Views: 62
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.