CVE-2021-3602: An information disclosure flaw was found in Buildah, when building containers using chroot isolation
31
Routine
MEDIUM 5.5WATCHLISTUPGRADEMITIGATEMITIGATE
CVE-2021-3602 is a medium-severity flaw (CVSS 5.5) affecting buildah, enterprise linux, enterprise linux for ibm z systems. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
redhat enterprise linux MITIGATE
Affected: 8.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 8.0
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
redhat enterprise linux for ibm z systems MITIGATE
Affected: 8.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 8.0
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
redhat enterprise linux for power little endian MITIGATE
Affected: 8.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 8.0
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
Verify at the official sourceNVD · CVE Program · Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-3602?
buildah: upgrade to 1.16.8, 1.17.2, 1.19.9, 1.21.3; enterprise linux: mitigate or apply the listed mitigation; enterprise linux for ibm z systems: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-3602 being exploited?
CVE-2021-3602 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-3602 affect?
CVE-2021-3602 affects buildah, enterprise linux, enterprise linux for ibm z systems. Severity is medium (CVSS 5.5). 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 processe
How urgent is CVE-2021-3602?
Priority 31/100. On your watchlist
Related CVEs
CVE-2024-9675HIGH 7.8MITIGATEDOWNGRADE A vulnerability was found in Buildah
CVE-2022-2990HIGH 7.1UPGRADEDOWNGRADE An incorrect handling of the supplementary groups in the Buildah container engine might lead to the sensitive
CVE-2022-27651MEDIUM 6.8UPGRADEMITIGATE A flaw was found in buildah where containers were incorrectly started with non-empty default permissions
CVE-2020-10696HIGH 8.8UPGRADEDOWNGRADE A path traversal flaw was found in Buildah in versions before 1.14.5
CVE-2019-10214MEDIUM 5.9MITIGATEMITIGATE The containers/image library used by the container tools Podman, Buildah, and Skopeo in Red Hat Enterprise Lin