CVE-2021-3602

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

Published Mar 3, 2022 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-1446 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).
Github GHSA Github GHSA GHSA-7638-r9r3-rmjj Buildah processes using chroot isolation may leak environment values to intermediate processes
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 3, 2024, 5:01 PM
Reserved
Jun 15, 2021, 12:00 AM
Status
Modified
Published
Mar 3, 2022, 7:15 PM
Modified
Jun 17, 2026, 4:05 AM
Severity
Moderate
Public date
Jul 15, 2021, 2:00 PM