Skip to main content
← All vulnerabilities
CVE-2021-3602GO-2022-0345GHSA-7638-R9R3-RMJJ

An information disclosure flaw was found in Buildah, when building containers using chroot isolation.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.22.0, 1.16.8, 1.17.2, 1.19.9, 1.21.3
None on Exploit-DB, Metasploit or GitHub

Summary

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

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a buildah

    Version range not reported

  • github.com/containers/buildahGo

    fixed in 1.22.0

  • github.com/containers/buildahGo

    fixed in 1.16.8

  • github.com/containers/buildahGo

    From 1.17.0 · fixed in 1.17.2

  • github.com/containers/buildahGo

    From 1.18.0 · fixed in 1.19.9

  • github.com/containers/buildahGo

    From 1.20.0 · fixed in 1.21.3

References 4

bugzilla.redhat.com

ubuntu.com

GitHub · containers/buildah