CyberRota Analysis
AI-GeneratedBuildKit versions prior to 0.31.1 on Linux are vulnerable to a memory exhaustion issue due to the uncontrolled reading of attacker-controlled /etc/passwd and /etc/group files during user resolution. This could lead to an out-of-memory termination of the buildkitd process, potentially disrupting build operations. Organizations using BuildKit for their build processes should prioritize upgrading to version 0.31.1 to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD 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.