Information disclosure in Buildah Project
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).
Vulnerability class: Information Disclosure
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.003, 25.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Buildah Project
- Red Hat Enterprise Linux — versions 8.0
- Red Hat Enterprise Linux For IBM Z Systems — versions 8.0
- Red Hat Enterprise Linux For Power Little Endian — versions 8.0
- Buildah — versions 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.
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (ARPSyndicate/cvemon, ARPSyndicate/cve-scores). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bugzilla.redhat.com/show_bug.cgi (Patch, Third Party Advisory, Issue Tracking)
- ubuntu.com/security/CVE-2021-3602 (Patch, Third Party Advisory)
- github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj (Third Party Advisory)
- github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0 (Patch, Third Party Advisory)