The software allows users to build and publish OCI container images from apk packages. A flaw exists in the `UserEntry.Parse` and `GroupEntry.Parse` functions within `pkg/passwd` when reading UID and GID fields from `/etc/passwd` and `/etc/group` entries. The system uses `strconv.Atoi` to convert these fields to `uint32` without performing a range check. On 64-bit platforms, negative values wrap and out-of-range values, such as 4294967296 (2^32), are truncated to 0. An attacker controlling a package installed into the image can provide an entry that appears to be an unprivileged UID or GID but is written into the final image as UID 0 or GID 0 (root). This truncated UID is also utilized when resolving the image's run-as user.