CVE-2021-3602
MEDIUM 5.5CVSS 3.1Buildah processes using chroot isolation may leak environment values to intermediate processes
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).
- Published
- 3 Mar 2022
- Last modified
- 10 Sep 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-200CWE-212
- Also known as
- GHSA-7638-r9r3-rmjjGO-2022-0345
- Sources
- NVDJSONOSV GHSA-7638-r9r3-rmjjJSONOSV GO-2022-0345JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 1.9 | AV:L/AC:M/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | buildah_project | buildahcpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:* |
< 1.16.8 | 1.16.8 |
| NVD | buildah_project | buildahcpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:* |
>= 1.17.0, < 1.17.2 | 1.17.2 |
| NVD | buildah_project | buildahcpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:* |
>= 1.19.0, < 1.19.9 | 1.19.9 |
| NVD | buildah_project | buildahcpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:* |
>= 1.21.0, < 1.21.3 | 1.21.3 |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | redhat | enterprise_linux_for_ibm_z_systemscpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | redhat | enterprise_linux_for_power_little_endiancpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| OSV | Go | github.com/containers/buildah | < 1.16.8 | 1.16.8 |
| OSV | Go | github.com/containers/buildah | >= 1.17.0, < 1.17.2 | 1.17.2 |
| OSV | Go | github.com/containers/buildah | >= 1.18.0, < 1.19.9 | 1.19.9 |
| OSV | Go | github.com/containers/buildah | >= 1.20.0, < 1.21.3 | 1.21.3 |
| OSV | Go | github.com/containers/buildah | < 1.22.0 | 1.22.0 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1969264 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj · Third Party Advisory, WEB
- https://ubuntu.com/security/CVE-2021-3602 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3602 · ADVISORY
- https://github.com/containers/buildah · PACKAGE
- https://pkg.go.dev/vuln/GO-2022-0345 · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 3 Mar 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Jul 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 Jul 2021)