Back
CVE-2021-3602
An information disclosure flaw was found in Buildah, when building containers using chroot isolation. Running processes in container…
Medium5.5EPSS 0.33%
- Published
- Updated
- Reserved
- Assigned by
- redhat
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).
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.33% · top 74% of all CVEs (5 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Weakness
Affected products
buildah
- affected Affects v1.21.2, v1.20.0, v1.19.8, v1.18.0, v1.17.1, v1.16.7, Fixed in v1.21.3, v1.19.9, v1.17.2, v1.16.8, v1.22.0 and above.
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/containers/buildahGHSA-7638-r9r3-rmjj (opens in a new tab)
References (4)
- https://bugzilla.redhat.com/show_bug.cgi?id=1969264 (opens in a new tab)x_refsource_MISCx_transferred
- https://ubuntu.com/security/CVE-2021-3602 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-7638-r9r3-rmjj (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2021-3602)Record last updated .