Information disclosure in buildah
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 1 fixed, 4 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-200.
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).
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | buildah | Affects v1.21.2, v1.20.0, v1.19.8, v1.18.0, v1.17.1, v1.16.7, Fixed in v1.21.3, v1.19.9, v1.17.2, v1.16.8, v1.22.0 and above. | — | No fix listed | CNA |
| — | github.com/containers/buildah (Go) | before 1.16.8 | 1.16.8 | Patch available | GHSA-7638-r9r3-rmjj |
| — | github.com/containers/buildah (Go) | 1.17.0 to before 1.17.2 | 1.17.2 | Patch available | GHSA-7638-r9r3-rmjj |
| — | github.com/containers/buildah (Go) | 1.18.0 to before 1.19.9 | 1.19.9 | Patch available | GHSA-7638-r9r3-rmjj |
| — | github.com/containers/buildah (Go) | 1.20.0 to before 1.21.3 | 1.21.3 | Patch available | GHSA-7638-r9r3-rmjj |
- buildah Vendor— Affected Affects v1.21.2, v1.20.0, v1.19.8, v1.18.0, v1.17.1, v1.16.7, Fixed in v1.21.3, v1.19.9, v1.17.2, v1.16.8, v1.22.0 and above. Fixed in — No fix listed CNA
- github.com/containers/buildah (Go) Vendor— Affected before 1.16.8 Fixed in 1.16.8 Patch available GHSA-7638-r9r3-rmjj
- github.com/containers/buildah (Go) Vendor— Affected 1.17.0 to before 1.17.2 Fixed in 1.17.2 Patch available GHSA-7638-r9r3-rmjj
- github.com/containers/buildah (Go) Vendor— Affected 1.18.0 to before 1.19.9 Fixed in 1.19.9 Patch available GHSA-7638-r9r3-rmjj
- github.com/containers/buildah (Go) Vendor— Affected 1.20.0 to before 1.21.3 Fixed in 1.21.3 Patch available GHSA-7638-r9r3-rmjj
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:* | before 1.16.8; 1.17.0 to before 1.17.2; 1.19.0 to before 1.19.9; 1.21.0 to before 1.21.3 | Vulnerable | Buildah Project |
| cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Red Hat |
- cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:* Versions before 1.16.8; 1.17.0 to before 1.17.2; 1.19.0 to before 1.19.9; 1.21.0 to before 1.21.3 Vulnerable ·Buildah Project
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Red Hat
Remediation
- Fix · GHSA-7638-r9r3-rmjj github.com/containers/buildah (Go) Fixed in 1.16.8 Advisory →
- Fix · GHSA-7638-r9r3-rmjj github.com/containers/buildah (Go) Fixed in 1.17.2 Advisory →
- Fix · GHSA-7638-r9r3-rmjj github.com/containers/buildah (Go) Fixed in 1.19.9 Advisory →
- Fix · GHSA-7638-r9r3-rmjj github.com/containers/buildah (Go) Fixed in 1.21.3 Advisory →
Red Hat 3 advisories
- RHSA-2021:4221 Released 2021-11-09 · Red Hat rating Moderatecontainer-tools:2.0 security update
- Red Hat Enterprise Linux AppStream (v. 8) buildah-1.11.6-9.module+el8.5.0+12239+ec01067b.aarch64::container-tools:2.0, buildah-1.11.6-9.module+el8.5.0+12239+ec01067b.ppc64le::container-tools:2.0, buildah-1.11.6-9.module+el8.5.0+12239+ec01067b.s390x::container-tools:2.0 +47
- RHSA-2021:4222 Released 2021-11-09 · Red Hat rating Moderatecontainer-tools:3.0 security and bug fix update
- Red Hat Enterprise Linux AppStream (v. 8) buildah-1.19.9-1.module+el8.5.0+12236+c988d830.aarch64::container-tools:3.0, buildah-1.19.9-1.module+el8.5.0+12236+c988d830.ppc64le::container-tools:3.0, buildah-1.19.9-1.module+el8.5.0+12236+c988d830.s390x::container-tools:3.0 +47
- RHSA-2021:4154 Released 2021-11-09 · Red Hat rating Moderatecontainer-tools:rhel8 security, bug fix, and enhancement update
- Red Hat Enterprise Linux AppStream (v. 8) buildah-1.22.3-2.module+el8.5.0+12582+56d94c81.aarch64::container-tools:rhel8, buildah-1.22.3-2.module+el8.5.0+12582+56d94c81.ppc64le::container-tools:rhel8, buildah-1.22.3-2.module+el8.5.0+12582+56d94c81.s390x::container-tools:rhel8 +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 3.11 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Container Platform 4 | Affected | No fix planned: Will not fix |
| Red Hat Quay 3 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2021:4154, RHSA-2021:4221, RHSA-2021:4222 |
Not affected: 2 products
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
Timeline
- 2026-10-02 Threatist record created from CVE-2021-3602
- 2026-10-03 Alias added: GHSA-7638-r9r3-rmjj
References
Patch 3
Advisory 2
Sources
- CVE-2021-3602 · CVE Program
- CVE-2021-3602 · NVD
- FIRST EPSS
- GHSA-7638-r9r3-rmjj · GitHub Advisory Database · CC BY 4.0
- CVE-2021-3602 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences