CVE-2021-3602Buildah Project Buildah
Medium 5.5
Follow: this CVE · Buildah Project · Buildah Project Buildah We alert you by email or Slack (account required).
- 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
- 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).
What to do
- Apply the vendor's security update for Buildah.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| buildah_project | buildah | < 1.16.8 |
| buildah_project | buildah | ≥ 1.17.0 < 1.17.2 |
| buildah_project | buildah | ≥ 1.19.0 < 1.19.9 |
| buildah_project | buildah | ≥ 1.21.0 < 1.21.3 |
| redhat | enterprise_linux | 8.0 |
| redhat | enterprise_linux_for_ibm_z_systems | 8.0 |
| redhat | enterprise_linux_for_power_little_endian | 8.0 |
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Issue Tracking Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- ubuntu.com Patch Third Party Advisory