CVEfocus › CVE database › CVE-2021-3602

CVE-2021-3602

EPSS 0.3% (higher than 25% of CVEs)Published 2022-03-03Updated 2024-08-03Assigner: redhat

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

CWE-200

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

104Fixed
4Fix pending
3Will not fix
9Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-github-containers-buildahFix pendingUBUNTU-CVE-2021-3602
Ubuntu 26.04golang-github-containers-buildahFix pendingUBUNTU-CVE-2021-3602
Ubuntu 25.10golang-github-containers-buildahWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-3602
Ubuntu 24.04golang-github-containers-buildahFix pendingUBUNTU-CVE-2021-3602
Ubuntu 22.04golang-github-containers-buildahFix pendingUBUNTU-CVE-2021-3602
Debian 14golang-github-containers-buildahFixed1.22.3+ds1-1DEBIAN-CVE-2021-3602
Debian 13golang-github-containers-buildahFixed1.22.3+ds1-1DEBIAN-CVE-2021-3602
Debian 12golang-github-containers-buildahFixed1.22.3+ds1-1DEBIAN-CVE-2021-3602
Red Hat Enterprise Linux 9buildahNot affected
Red Hat Enterprise Linux 9buildah-testsNot affected
Red Hat Enterprise Linux 9podmanNot affected
Red Hat Enterprise Linux 9podman-catatonitNot affected
Red Hat Enterprise Linux 9podman-dockerNot affected
Red Hat Enterprise Linux 9podman-gvproxyNot affected
Red Hat Enterprise Linux 9podman-pluginsNot affected
Red Hat Enterprise Linux 9podman-remoteNot affected
Red Hat Enterprise Linux 9podman-testsNot affected
Red Hat Enterprise Linux 8buildahFixed0:1.19.9-1.module+el8.5.0+12236+c988d830RHSA-2021:4221
Red Hat Enterprise Linux 8buildah-testsFixed0:1.11.6-9.module+el8.5.0+12239+ec01067bRHSA-2021:4154
Red Hat Enterprise Linux 8cockpit-podmanFixed0:33-1.module+el8.5.0+12582+56d94c81RHSA-2021:4222
Red Hat Enterprise Linux 8conmonFixed2:2.0.26-1.module+el8.5.0+10306+3f72d66dRHSA-2021:4221
Red Hat Enterprise Linux 8container-selinuxFixed2:2.167.0-1.module+el8.5.0+12609+beaa716dRHSA-2021:4154
Red Hat Enterprise Linux 8containernetworking-pluginsFixed0:1.0.0-1.module+el8.5.0+12582+56d94c81RHSA-2021:4222
Red Hat Enterprise Linux 8containers-commonFixed1:1.2.2-10.module+el8.5.0+11808+4e1db630RHSA-2021:4154
Red Hat Enterprise Linux 8critFixed0:3.15-1.module+el8.5.0+10306+3f72d66dRHSA-2021:4221
Red Hat Enterprise Linux 8criuFixed0:3.15-3.module+el8.5.0+12582+56d94c81RHSA-2021:4222
Red Hat Enterprise Linux 8criu-develFixed0:3.15-3.module+el8.5.0+12582+56d94c81RHSA-2021:4154
Red Hat Enterprise Linux 8criu-libsFixed0:3.15-3.module+el8.5.0+12582+56d94c81RHSA-2021:4154
Red Hat Enterprise Linux 8crunFixed0:1.0-1.module+el8.5.0+12582+56d94c81RHSA-2021:4222
Red Hat Enterprise Linux 8fuse-overlayfsFixed0:1.7.1-1.module+el8.5.0+12582+56d94c81RHSA-2021:4221
Red Hat Enterprise Linux 8libslirpFixed0:4.4.0-1.module+el8.5.0+12582+56d94c81RHSA-2021:4222
Red Hat Enterprise Linux 8libslirp-develFixed0:4.3.1-1.module+el8.5.0+10306+3f72d66dRHSA-2021:4154
Red Hat Enterprise Linux 8oci-seccomp-bpf-hookFixed0:1.2.3-3.module+el8.5.0+12582+56d94c81RHSA-2021:4222
Red Hat Enterprise Linux 8podmanFixed0:1.6.4-26.module+el8.5.0+10223+f7559c42RHSA-2021:4154
Red Hat Enterprise Linux 8podman-catatonitFixed0:3.0.1-6.module+el8.5.0+12609+beaa716dRHSA-2021:4154
Red Hat Enterprise Linux 8podman-dockerFixed0:3.0.1-6.module+el8.5.0+12609+beaa716dRHSA-2021:4154
Red Hat Enterprise Linux 8podman-gvproxyFixed0:3.3.1-9.module+el8.5.0+12697+018f24d7RHSA-2021:4154
Red Hat Enterprise Linux 8podman-pluginsFixed0:3.3.1-9.module+el8.5.0+12697+018f24d7RHSA-2021:4222
Red Hat Enterprise Linux 8podman-remoteFixed0:1.6.4-26.module+el8.5.0+10223+f7559c42RHSA-2021:4222
Red Hat Enterprise Linux 8podman-testsFixed0:3.3.1-9.module+el8.5.0+12697+018f24d7RHSA-2021:4222
Red Hat Enterprise Linux 8python-podmanFixed0:3.2.0-2.module+el8.5.0+12582+56d94c81RHSA-2021:4154
Red Hat Enterprise Linux 8python-podman-apiFixed0:1.2.0-0.2.gitd0a45fe.module+el8.5.0+10223+f7559c42RHSA-2021:4221
Red Hat Enterprise Linux 8python3-criuFixed0:3.12-9.module+el8.5.0+10223+f7559c42RHSA-2021:4222
Red Hat Enterprise Linux 8python3-podmanFixed0:3.2.0-2.module+el8.5.0+12582+56d94c81RHSA-2021:4154
Red Hat Enterprise Linux 8runcFixed0:1.0.0-72.rc92.module+el8.5.0+12236+c988d830RHSA-2021:4221
Red Hat Enterprise Linux 8skopeoFixed1:1.4.2-0.1.module+el8.5.0+12582+56d94c81RHSA-2021:4222
Red Hat Enterprise Linux 8skopeo-testsFixed1:1.4.2-0.1.module+el8.5.0+12582+56d94c81RHSA-2021:4221
Red Hat Enterprise Linux 8slirp4netnsFixed0:1.1.8-1.module+el8.5.0+12582+56d94c81RHSA-2021:4222
Red Hat Enterprise Linux 8toolboxFixed0:0.0.7-1.module+el8.5.0+10223+f7559c42RHSA-2021:4222
Red Hat Enterprise Linux 8toolbox-testsFixed0:0.0.99.3-0.4.module+el8.5.0+12682+a4eeb084RHSA-2021:4222
Red Hat Enterprise Linux 8udicaFixed0:0.2.1-2.module+el8.5.0+10223+f7559c42RHSA-2021:4222
Red Hat Enterprise Linux 7buildahWill not fix
Out of support scope
Red Hat Enterprise Linux 7podmanWill not fix
Out of support scope
AlmaLinux 8buildahFixed1.19.9-1.module_el8.5.0+2614+87221ce8ALSA-2021:4222
AlmaLinux 8buildah-testsFixed1.19.9-1.module_el8.5.0+2614+87221ce8ALSA-2021:4222
AlmaLinux 8cockpit-podmanFixed11-1.module_el8.5.0+108+00865455ALSA-2021:4221
AlmaLinux 8conmonFixed2:2.0.26-1.module_el8.6.0+2876+9ed4eae2ALSA-2021:4221
AlmaLinux 8container-selinuxFixed2:2.130.0-1.module_el8.5.0+108+00865455ALSA-2021:4221
AlmaLinux 8containernetworking-pluginsFixed0.9.1-1.module_el8.5.0+2614+87221ce8ALSA-2021:4222
AlmaLinux 8containers-commonFixed1:0.1.41-4.module_el8.5.0+108+00865455ALSA-2021:4221
AlmaLinux 8critFixed3.12-9.module_el8.4.0+2496+12421f43ALSA-2021:4221
AlmaLinux 8criuFixed3.15-1.module_el8.6.0+2876+9ed4eae2ALSA-2021:4221
AlmaLinux 8criu-develFixed3.15-3.module_el8.5.0+2613+1b78b731ALSA-2021:4154
AlmaLinux 8criu-libsFixed3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2021:4154
AlmaLinux 8crunFixed0.18-2.module_el8.5.0+2614+87221ce8ALSA-2021:4222
AlmaLinux 8fuse-overlayfsFixed0.7.8-1.module_el8.5.0+2635+e4386a39ALSA-2021:4222
AlmaLinux 8libslirpFixed4.3.1-1.module_el8.6.0+2876+9ed4eae2ALSA-2021:4154
AlmaLinux 8libslirp-develFixed4.3.1-1.module_el8.5.0+2614+87221ce8ALSA-2021:4154
AlmaLinux 8oci-seccomp-bpf-hookFixed1.2.0-3.module_el8.6.0+2876+9ed4eae2ALSA-2021:4154
AlmaLinux 8python-podman-apiFixed1.2.0-0.2.gitd0a45fe.module_el8.5.0+108+00865455ALSA-2021:4221
AlmaLinux 8python3-criuFixed3.15-1.module_el8.6.0+2876+9ed4eae2ALSA-2021:4222
AlmaLinux 8runcFixed1.0.0-66.rc10.module_el8.5.0+108+00865455ALSA-2021:4222
AlmaLinux 8skopeoFixed1:0.1.41-4.module_el8.5.0+108+00865455ALSA-2021:4221
AlmaLinux 8skopeo-testsFixed1:0.1.41-4.module_el8.5.0+108+00865455ALSA-2021:4221
AlmaLinux 8slirp4netnsFixed1.1.8-1.module_el8.6.0+2876+9ed4eae2ALSA-2021:4154
AlmaLinux 8toolboxFixed0.0.7-1.module_el8.5.0+2635+e4386a39ALSA-2021:4154
AlmaLinux 8toolbox-testsFixed0.0.99.3-0.4.module_el8.5.0+2613+1b78b731ALSA-2021:4154
AlmaLinux 8udicaFixed0.2.4-1.module_el8.5.0+2614+87221ce8ALSA-2021:4221
Rocky Linux 8buildahFixed0:1.11.6-9.module+el8.5.0+708+6758137dRLSA-2021:4222
Rocky Linux 8cockpit-podmanFixed0:29-2.module+el8.4.0+556+40122d08RLSA-2021:4222
Rocky Linux 8conmonFixed2:2.0.15-1.module+el8.5.0+770+e2f49861RLSA-2021:4222
Rocky Linux 8container-selinuxFixed2:2.167.0-1.module+el8.5.0+709+440d5e7eRLSA-2021:4154
Rocky Linux 8containernetworking-pluginsFixed0:0.9.1-1.module+el8.4.0+556+40122d08RLSA-2021:4222
Rocky Linux 8containers-commonFixed2:1-2.module+el8.5.0+710+4c471e88RLSA-2021:4154
Rocky Linux 8criuFixed0:3.15-3.module+el8.5.0+710+4c471e88RLSA-2021:4154
Rocky Linux 8crunFixed0:1.0-1.module+el8.5.0+710+4c471e88RLSA-2021:4222
Rocky Linux 8fuse-overlayfsFixed0:1.7.1-1.module+el8.5.0+710+4c471e88RLSA-2021:4222
Rocky Linux 8libslirpFixed0:4.3.1-1.module+el8.5.0+709+440d5e7eRLSA-2021:4222
Rocky Linux 8oci-seccomp-bpf-hookFixed0:1.2.0-3.module+el8.7.0+1076+9b1c11c1RLSA-2021:4154
Rocky Linux 8podmanFixed0:1.6.4-26.module+el8.5.0+708+6758137dRLSA-2021:4221
Rocky Linux 8python-podmanFixed0:3.2.0-2.module+el8.5.0+710+4c471e88RLSA-2021:4154
Rocky Linux 8python-podman-apiFixed0:1.2.0-0.2.gitd0a45fe.module+el8.4.0+559+c02fa3b2RLSA-2021:4221
Rocky Linux 8runcFixed0:1.0.0-72.rc92.module+el8.5.0+661+c0df01f6RLSA-2021:4222
Rocky Linux 8skopeoFixed1:1.2.2-10.module+el8.4.0+556+40122d08RLSA-2021:4222
Rocky Linux 8slirp4netnsFixed0:1.1.8-1.module+el8.7.0+1076+9b1c11c1RLSA-2021:4221
Rocky Linux 8toolboxFixed0:0.0.99.3-0.4.module+el8.6.0+784+32aef5deRLSA-2021:4221
Rocky Linux 8udicaFixed0:0.2.4-1.module+el8.5.0+709+440d5e7eRLSA-2021:4221
Alpine Linux 3.24buildahFixed1.21.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.24podmanFixed3.2.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.23buildahFixed1.21.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.23podmanFixed3.2.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.22buildahFixed1.21.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.22podmanFixed3.2.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.21buildahFixed1.21.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.21podmanFixed3.2.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.20buildahFixed1.21.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.20podmanFixed3.2.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.19buildahFixed1.21.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.19podmanFixed3.2.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.18buildahFixed1.21.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.18podmanFixed3.2.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.17buildahFixed1.21.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.17podmanFixed3.2.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.16buildahFixed1.21.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.16podmanFixed3.2.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.15buildahFixed1.21.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.15podmanFixed3.2.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.14buildahFixed1.21.3-r0ALPINE-CVE-2021-3602
Alpine Linux 3.14podmanFixed3.2.3-r0ALPINE-CVE-2021-3602
Go librarygithub.com/containers/buildahFixed1.16.8GO-2022-0345

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.