Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/containers/buildah/chroot
  4. ›
  5. CVE-2021-3602

CVE-2021-3602: Improper Removal of Sensitive Information Before Storage or Transfer

July 19, 2021 (updated February 7, 2023)

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

References

  • bugzilla.redhat.com/show_bug.cgi?id=1969264
  • github.com/advisories/GHSA-7638-r9r3-rmjj
  • github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0
  • github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj
  • nvd.nist.gov/vuln/detail/CVE-2021-3602
  • pkg.go.dev/vuln/GO-2022-0345
  • ubuntu.com/security/CVE-2021-3602

Code Behaviors & Features

Detect and mitigate CVE-2021-3602 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.16.7, all versions starting from 1.17.0 up to 1.17.1, all versions starting from 1.18.0 up to 1.19.8, all versions starting from 1.20.0 up to 1.21.2

Fixed versions

  • v1.16.8
  • v1.17.2
  • v1.19.9
  • v1.21.3

Solution

Upgrade to versions 1.16.8, 1.17.2, 1.19.9, 1.21.3 or above.

Impact 5.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer

Source file

go/github.com/containers/buildah/chroot/CVE-2021-3602.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:08 +0000.