CVE-2021-3602
An information disclosure flaw was found in Buildah, when building containers using chroot isolation. Running processes in container…
- 5.5MediumCVSS base score
- 0.32%Exploitation in 30 daysEPSS · top 75% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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).
Timeline
ID reserved
By redhat
- 9 months later
· 9 months later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
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.32% · top 75% of all CVEs (11 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
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
References4
- 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)
- EUVD EUVD-2021-1446 (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://cveledger.app/cve/CVE-2021-3602)Record last updated .