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…
Exploitation and risk
Source statusCISA KEV lists vulnerabilities known to be exploited. FIRST EPSS estimates the likelihood of exploitation in the next 30 days. An unavailable score does not mean zero risk.
Which CVEs have scores here?
This view includes predictions for CVE identifiers explicitly listed in public NuGet advisories. Microsoft release pages have their own prediction coverage. Check source status for the scope and latest checks.
No exploitation or prediction data is available here for these CVEs. This does not mean they are safe or unlikely to be exploited.
cve-program · CVE-2021-3602
PublishedAn 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).
- Source published
- 3 Mar 2022 18:26:21 UTC
- Source modified
- 3 Aug 2024 17:01:08 UTC
- Saved here
- 23 Oct 2026 15:48:27 UTC
- Source terms
- CVE Program Terms of Use
Original source record · Cite this exact observation · Complete original publisher JSON
Source: cve-program · CVE Program Terms of Use. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
euvd · EUVD-2021-1446
PublishedAn 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).
Additional publisher context
EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.
Original publisher date fields
datePublished: Mar 3, 2022, 6:26:21 PM
dateUpdated: Aug 3, 2024, 5:01:08 PM
9 related source bulletins · separate from aliases
openSUSE-SU-2022:23018-1: Security update for conmon, libcontainers-common, libseccomp, podman
CVE-2020-14370 · CVE-2020-15157 · CVE-2021-20199 · CVE-2021-20291 · CVE-2021-3602 · CVE-2021-4024 · CVE-2021-41190
openSUSE-SU-2024:11757-1: libcontainers-common-20210626-7.1 on GA media
CVE-2020-14370 · CVE-2020-15157 · CVE-2021-20199 · CVE-2021-20291 · CVE-2021-3602
SUSE-SU-2022:3312-1: Security update for libcontainers-common
CVE-2020-14370 · CVE-2020-15157 · CVE-2021-20199 · CVE-2021-20291 · CVE-2021-3602
msrc_CVE-2021-3602: 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).
CVE-2021-3602
RHSA-2021:4222: Red Hat Security Advisory: container-tools:3.0 security and bug fix update
CVE-2021-3602
RHSA-2021:4154: Red Hat Security Advisory: container-tools:rhel8 security, bug fix, and enhancement update
CVE-2021-3602 · CVE-2021-20291
SUSE-SU-2022:23018-1: Security update for conmon, libcontainers-common, libseccomp, podman
CVE-2020-14370 · CVE-2020-15157 · CVE-2021-20199 · CVE-2021-20291 · CVE-2021-3602 · CVE-2021-4024 · CVE-2021-41190
WID-SEC-W-2022-0571: Red Hat Enterprise Linux: Mehrere Schwachstellen
CVE-2019-17594 · CVE-2019-17595 · CVE-2019-18218 · CVE-2019-19004 · CVE-2019-19005 · CVE-2020-12762 · CVE-2020-17541 · CVE-2020-18442 · CVE-2020-24370 · CVE-2020-8037 · CVE-2021-20095 · CVE-2021-28957 · CVE-2021-29922 · CVE-2021-3200 · CVE-2021-3445 · CVE-2021-3481 · CVE-2021-3565 · CVE-2021-3571 · CVE-2021-3572 · CVE-2021-3602 · CVE-2021-36084 · CVE-2021-36085 · CVE-2021-36086 · CVE-2021-36087 · CVE-2021-42771
RHSA-2021:4221: Red Hat Security Advisory: container-tools:2.0 security update
CVE-2021-3602
- Source published
- Mar 3, 2022, 6:26:21 PM (timezone not stated)
- Source modified
- Aug 3, 2024, 5:01:08 PM (timezone not stated)
- Saved here
- 18 Nov 2026 00:39:51 UTC
- Source terms
- ENISA EUVD · source terms and attribution apply
Original source record · Cite this exact observation · Complete original publisher JSON
Source: euvd · ENISA EUVD · source terms and attribution apply. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
nvd · CVE-2021-3602
PublishedAn 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).
Additional publisher context
NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-200 · CWE-212
Original publisher date fields
published: 2022-03-03T19:15:08.107
lastModified: 2026-06-17T04:05:25.127
4 source CPE criteria · context only
- cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
- Source published
- 3 Mar 2022 19:15:08 UTC
- Source modified
- 17 Jun 2026 04:05:25 UTC
- Saved here
- 24 Oct 2026 18:17:33 UTC
- Source terms
- NIST NVD usage terms; underlying source attribution retained
Original source record · Cite this exact observation · Complete original publisher JSON
Source: nvd · NIST NVD usage terms; underlying source attribution retained. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS 3.1 · [email protected] · Primary · 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS 2.0 · [email protected] · Primary · 1.9 AV:L/AC:M/Au:N/C:P/I:N/A:N
osv · GHSA-7638-r9r3-rmjj
Published### Impact When running processes using "chroot" isolation, the process being run can examine the environment variables of its immediate parent and grandparent processes (CVE-2021-3602). This isolation type is often used when running `buildah` in unprivileged containers, and it is often used to do so in CI/CD environments. If sensitive information is exposed to the original `buildah` process through its environment, that information will unintentionally be shared with child processes which it starts as part of handling RUN instructions or during `buildah run`. The commands that `buildah` is instructed to run can read that information if they choose to. ### Patches Users should upgrade packages, or images which contain packages, to include version 1.21.3 or later. ### Workarounds As a workaround, invoking `buildah` in a container under `env -i` to have it started with a reinitialized environment should prevent the leakage. ### For more information If you have any questions or comments about this advisory: * Open an issue in [buildah](https://github.com/containers/buildah/issues) * Email us at [the buildah general mailing list](mailto:[email protected]), or [the podman security mailing list](mailto:[email protected]) if it's sensitive.
- Source published
- 19 Jul 2021 15:19:09 UTC
- Source modified
- 10 Sep 2026 03:49:06 UTC
- Saved here
- 24 Oct 2026 13:19:41 UTC
- Source terms
- GitHub Advisory Database · CC-BY-4.0
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · GitHub Advisory Database · CC-BY-4.0. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS_V3 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Publisher rating · MODERATE
osv · GO-2022-0345
PublishedThe RunUsingChroot function unintentionally propagates environment variables from the current process to the child process.
- Source published
- 15 Jul 2022 23:30:21 UTC
- Source modified
- 4 Feb 2026 03:52:10 UTC
- Saved here
- 24 Oct 2026 13:19:41 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.