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 usernames 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 is fixed in version 0.31.1.
AI Analysis
Technical Summary
BuildKit versions before 0.31.1 improperly handle resource allocation when reading /etc/passwd and /etc/group files during user resolution in executor/oci/user.go and solver/llbsolver/ops/user_linux.go. Specifically, there is no upper bound on the size of these files, allowing an attacker to supply oversized files that cause excessive memory consumption. This can lead to out-of-memory termination of the buildkitd process. The issue is tracked as CWE-770 (Allocation of Resources Without Limits or Throttling). The vulnerability has a CVSS 4.0 base score of 2.3, indicating low severity. The problem is resolved in BuildKit version 0.31.1.
Potential Impact
An attacker can cause denial of service by exhausting memory resources of the buildkitd process through supplying oversized /etc/passwd or /etc/group files during user resolution. This results in termination of the build process. There is no indication of privilege escalation or code execution. The impact is limited to availability disruption of the buildkitd service.
Mitigation Recommendations
Upgrade BuildKit to version 0.31.1 or later, where this issue is fixed. Since the vendor advisory confirms the fix in 0.31.1, applying this update fully mitigates the vulnerability. No other mitigation or workaround is indicated.
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 usernames 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 is fixed in version 0.31.1.
CVSS v4.0
Score 2.3low
Affected software
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 resource allocation when reading /etc/passwd and /etc/group files during user resolution in executor/oci/user.go and solver/llbsolver/ops/user_linux.go. Specifically, there is no upper bound on the size of these files, allowing an attacker to supply oversized files that cause excessive memory consumption. This can lead to out-of-memory termination of the buildkitd process. The issue is tracked as CWE-770 (Allocation of Resources Without Limits or Throttling). The vulnerability has a CVSS 4.0 base score of 2.3, indicating low severity. The problem is resolved in BuildKit version 0.31.1.
Potential Impact
An attacker can cause denial of service by exhausting memory resources of the buildkitd process through supplying oversized /etc/passwd or /etc/group files during user resolution. This results in termination of the build process. There is no indication of privilege escalation or code execution. The impact is limited to availability disruption of the buildkitd service.
Mitigation Recommendations
Upgrade BuildKit to version 0.31.1 or later, where this issue is fixed. Since the vendor advisory confirms the fix in 0.31.1, applying this update fully mitigates the vulnerability. No other mitigation or workaround is indicated.
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
- Remediation Level
- null
Threat ID: 6a86109dacd9273b4993ac9f
Added to database: 08/19/2026, 20:22:53 UTC
Last enriched: 08/19/2026, 20:40:40 UTC
Last updated: 08/19/2026, 20:40:40 UTC
Views: 4
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.