CVE-2021-3602
MEDIUM
Published Mar 3, 20224y ago · Modified Jun 17, 20262w ago
5.5 CVSS 3.1
Published Mar 3, 2022 4y ago
Last Modified Jun 17, 2026 2w ago
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).
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality High
Integrity None
Availability None
Threat Intelligence
No active exploitation signals — not in CISA KEV and no EPSS score yet.
Exploit & Patch Status
No Known Exploit
Patch Available
Weaknesses 2
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor Information Exposure
CWE-212
Affected Products 7
| Vendor | Product | Version | Range |
|---|---|---|---|
| buildah_project | buildah | * | <1.16.8 |
| buildah_project | buildah | * | ≥1.17.0 – <1.17.2 |
| buildah_project | buildah | * | ≥1.19.0 – <1.19.9 |
| buildah_project | buildah | * | ≥1.21.0 – <1.21.3 |
| redhat | enterprise_linux | 8.0 | any |
| redhat | enterprise_linux_for_ibm_z_systems | 8.0 | any |
| redhat | enterprise_linux_for_power_little_endian | 8.0 | any |
References 4
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1969264
- github.com https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0
- github.com https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj
- ubuntu.com https://ubuntu.com/security/CVE-2021-3602
Remediation
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1969264
- github.com https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0
- ubuntu.com https://ubuntu.com/security/CVE-2021-3602