ADVISORIES

Vulnerability

CVE-2021-3602

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).

27 advisories report this vulnerability, across 13 ecosystems.

Advisories in Go

  • GHSA-7638-r9r3-rmjj

    Buildah processes using chroot isolation may leak environment values to intermediate processes

    Moderate CVE-2021-3602 Go Updated 10 September 2026
  • GO-2022-0345

    Environment variable leakage in github.com/containers/buildah

    CVE-2021-3602 Go Updated 4 February 2026

References