Read the docs
TI-2021-02548 Aliases CVE-2021-3602GHSA-7638-r9r3-rmjj

Information disclosure in buildah

Priority LOW 25CWE-200Published · Updated

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

EPSS 0.00327 25th percentileScored 2026-11-07
Fix Partial github.com/containers/buildah (Go): 1.16.8, 1.17.2, 1.19.9 +1Red Hat: 3 advisoriesRed Hat: 1 fixed, 4 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—buildahAffects 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 listedCNA
—github.com/containers/buildah (Go)before 1.16.81.16.8Patch availableGHSA-7638-r9r3-rmjj
—github.com/containers/buildah (Go)1.17.0 to before 1.17.21.17.2Patch availableGHSA-7638-r9r3-rmjj
—github.com/containers/buildah (Go)1.18.0 to before 1.19.91.19.9Patch availableGHSA-7638-r9r3-rmjj
—github.com/containers/buildah (Go)1.20.0 to before 1.21.31.21.3Patch availableGHSA-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

CPEVersionsRoleVendor
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.3VulnerableBuildah Project
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*8.0VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:*8.0VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:*8.0VulnerableRed 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 Moderate
    container-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 Moderate
    container-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 Moderate
    container-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 →

ProductStatusPlan or fix
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat OpenShift Container Platform 3.11AffectedNo fix planned: Will not fix
Red Hat OpenShift Container Platform 4AffectedNo fix planned: Will not fix
Red Hat Quay 3AffectedNo 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

  1. 2026-10-02 Threatist record created from CVE-2021-3602
  2. 2026-10-03 Alias added: GHSA-7638-r9r3-rmjj

References

Sources