Live threats

All CVEs / Buildah Project

CVE-2021-3602Buildah Project Buildah

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
0.3%
probability of exploitation in 30 days · percentile 17
Auth required
Yes
Published
Mar 3, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200, CWE-212
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Buildah.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/containers/buildah < 1.16.8 1.16.8 go get github.com/containers/buildah@v1.16.8
Go github.com/containers/buildah ≥ 1.17.0 < 1.17.2 1.17.2 go get github.com/containers/buildah@v1.17.2
Go github.com/containers/buildah ≥ 1.18.0 < 1.19.9 1.19.9 go get github.com/containers/buildah@v1.19.9
Go github.com/containers/buildah ≥ 1.20.0 < 1.21.3 1.21.3 go get github.com/containers/buildah@v1.21.3
Go github.com/containers/buildah < 1.22.0 1.22.0 go get github.com/containers/buildah@v1.22.0

Per OSV / GitHub Advisories (GHSA-7638-r9r3-rmjj, GO-2022-0345). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
buildah_projectbuildah< 1.16.8
buildah_projectbuildah≥ 1.17.0 < 1.17.2
buildah_projectbuildah≥ 1.19.0 < 1.19.9
buildah_projectbuildah≥ 1.21.0 < 1.21.3
redhatenterprise_linux8.0
redhatenterprise_linux_for_ibm_z_systems8.0
redhatenterprise_linux_for_power_little_endian8.0

Official sources

References

Links published by the sources. Open them with care.