CVE-2021-3602
Buildah Project Buildah vulnerability
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).
Affected products
Buildah, Enterprise Linux, Enterprise Linux For Ibm Z Systems, Enterprise Linux For Power Little Endian. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Buildah Project Buildah runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- bugzilla.redhat.com/show_bug.cgi?id=1969264 · Patch
- github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0 · Patch
- ubuntu.com/security/CVE-2021-3602 · Patch
- github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-3602
- cve.org/CVERecord?id=CVE-2021-3602
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.