What’s Vulnerable › Vulnerabilities
CVE-2021-3602
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-03-03 · updated 2026-06-17
- Weakness: CWE-200
Description
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).
Affected products
- Buildah Project Buildah: before 1.16.8; from 1.17.0 before 1.17.2; from 1.19.0 before 1.19.9; from 1.21.0 before 1.21.3 — fixed in 1.16.8, 1.17.2, 1.19.9, 1.21.3
- Red Hat Enterprise Linux: 8.0
- RedHat Enterprise Linux For Ibm Z Systems: 8.0
- RedHat Enterprise Linux For Power Little Endian: 8.0
How to fix
Upgrade to a fixed version: Buildah Project Buildah 1.16.8, 1.17.2, 1.19.9, 1.21.3. Check the vendor advisory for mitigations.
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1969264
- https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0
- https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj
- https://ubuntu.com/security/CVE-2021-3602
- https://bugzilla.redhat.com/show_bug.cgi?id=1969264
- https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0
- https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj
- https://ubuntu.com/security/CVE-2021-3602
Get alerted when CVE-2021-3602 or the next vulnerability affects your stack