CVE-2021-3602 is an information disclosure vulnerability in Buildah, affecting various Buildah and Red Hat Enterprise Linux products. When building containers with chroot isolation, running processes within the container can access sensitive environment variables from parent processes, potentially exposing credentials in CI/CD environments. Rated Medium (CVSS 5.5), this local attack requires low privileges and has a high confidentiality impact. There is currently no evidence of active exploitation, public exploit code (Metasploit, Nuclei, ExploitDB), or significant community discussion or media coverage.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
< 1.16.8CPE matchmatch criteria | cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:* | ||
>= 1.17.0, < 1.17.2CPE matchmatch criteria | cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:* | ||
>= 1.19.0, < 1.19.9CPE matchmatch criteria | cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:* | ||
>= 1.21.0, < 1.21.3CPE matchmatch criteria | cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:* | ||
8.0CPE matchmatch criteria | cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.0 Bluesky, 0.0 Mastodon, and 0.1 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.
CVE-2021-3602
Apr 9, 2024An 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).
Mar 8, 2022Buildah processes using chroot isolation may leak environment values to intermediate processes
Jul 19, 2021buildah: Host environment variables leaked in build container when using chroot isolation
Jul 15, 2021