A flaw was found in Buildah (and subsequently Podman Build) which allows containers to mount arbitrary locations on the host filesystem into build containers. A malicious Containerfile can use a dummy image with a symbolic link to the root filesystem as a mount source and cause the mount operation to mount the host root filesystem inside the RUN step. The commands inside the RUN step will then have read-write access to the host filesystem, allowing for full container escape at build time.
OS | Version | Architecture | Package | Version | Filename |
---|---|---|---|---|---|
Alpine | edge-community | noarch | buildah | < 1.35.4-r0 | UNKNOWN |
Alpine | edge-community | noarch | podman | < 4.9.4-r0 | UNKNOWN |
Alpine | 3.20-community | noarch | buildah | < 1.35.4-r0 | UNKNOWN |
Alpine | 3.20-community | noarch | podman | < 4.9.4-r0 | UNKNOWN |