CVE-2021-3602: Buildah Project Buildah

Medium severity, CVSS 5.5. EPSS: 0.3% chance of exploitation in the next 30 days.

An information disclosure flaw was found in Buildah, when building containers using chroot isolation. Running processes in container builds (e.g. Dockerfile RUN commands) can access environment variables from parent and grandparent processes. When run in a container in a CI/CD environment, environment variables may include sensitive information that was shared with the container in order to be used only by Buildah itself (e.g. container registry credentials).

Affected products

  • Buildah Project Buildah: before 1.16.8 (fixed in 1.16.8); from 1.17.0, before 1.17.2 (fixed in 1.17.2); from 1.19.0, before 1.19.9 (fixed in 1.19.9); from 1.21.0, before 1.21.3 (fixed in 1.21.3)
  • Red Hat Enterprise Linux: version 8.0 only
  • Red Hat Enterprise Linux For IBM Z Systems: version 8.0 only
  • Red Hat Enterprise Linux For Power Little Endian: version 8.0 only

Published 2022-03-03. Last modified 2026-06-17.