CVE Database›Document archive›CVE-2021-3602

CVE-2021-3602

buildah: Host environment variables leaked in build container when using chroot isolation

Loading…

Severity

Moderate

Red Hat Product Security

5.6

CVSS 3.1

Review impact separately from score.

Published · July 15, 2021

Updated · October 23, 2026

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).

Statement

OpenShift Container Platform 4's builder container is not vulnerable to this flaw as it uses OCI isolation (i.e. using runc) and does not use chroot isolation.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.6
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N

CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor