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

Analysis

No analysis available yet

Remediation

No remediation available yet

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
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-212

    Improper Removal of Sensitive Information Before Storage or Transfer

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