Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTc2MzgtcjlyMy1ybWpq
Buildah processes using chroot isolation may leak environment values to intermediate processes
Impact
When running processes using "chroot" isolation, the process being run can examine the environment variables of its immediate parent and grandparent processes (CVE-2021-3602). This isolation type is often used when running buildah
in unprivileged containers, and it is often used to do so in CI/CD environments. If sensitive information is exposed to the original buildah
process through its environment, that information will unintentionally be shared with child processes which it starts as part of handling RUN instructions or during buildah run
. The commands that buildah
is instructed to run can read that information if they choose to.
Patches
Users should upgrade packages, or images which contain packages, to include version 1.21.3 or later.
Workarounds
As a workaround, invoking buildah
in a container under env -i
to have it started with a reinitialized environment should prevent the leakage.
For more information
If you have any questions or comments about this advisory:
- Open an issue in buildah
- Email us at the buildah general mailing list, or the podman security mailing list if it's sensitive.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTc2MzgtcjlyMy1ybWpq
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 3 years ago
Updated: over 1 year ago
CVSS Score: 5.5
CVSS vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS Percentage: 0.00045
EPSS Percentile: 0.17541
Identifiers: GHSA-7638-r9r3-rmjj, CVE-2021-3602
References:
- https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj
- https://nvd.nist.gov/vuln/detail/CVE-2021-3602
- https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0
- https://bugzilla.redhat.com/show_bug.cgi?id=1969264
- https://ubuntu.com/security/CVE-2021-3602
- https://pkg.go.dev/vuln/GO-2022-0345
- https://github.com/advisories/GHSA-7638-r9r3-rmjj
Blast Radius: 13.8
Affected Packages
go:github.com/containers/buildah
Dependent packages: 260Dependent repositories: 321
Downloads:
Affected Version Ranges: >= 1.20.0, <= 1.21.2, >= 1.18.0, <= 1.19.8, >= 1.17.0, <= 1.17.1, <= 1.16.7
Fixed in: 1.21.3, 1.19.9, 1.17.2, 1.16.8
All affected versions: 0.16.0, 1.7.1, 1.7.2, 1.7.3, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.9.0, 1.9.1, 1.9.2, 1.10.0, 1.10.1, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.11.4, 1.11.5, 1.11.6, 1.11.7, 1.12.0, 1.13.0, 1.13.1, 1.13.2, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.14.7, 1.14.8, 1.14.9, 1.14.10, 1.14.11, 1.15.0, 1.15.1, 1.15.2, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.16.7, 1.17.0, 1.17.1, 1.18.0, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.6, 1.19.7, 1.19.8, 1.20.0, 1.20.1, 1.20.2, 1.21.0, 1.21.1, 1.21.2
All unaffected versions: 1.16.8, 1.17.2, 1.19.9, 1.19.10, 1.19.11, 1.21.3, 1.21.4, 1.21.5, 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.22.5, 1.23.0, 1.23.1, 1.23.2, 1.23.3, 1.23.4, 1.23.5, 1.24.0, 1.24.1, 1.24.2, 1.24.3, 1.24.4, 1.24.5, 1.24.6, 1.24.7, 1.25.0, 1.25.1, 1.26.0, 1.26.1, 1.26.2, 1.26.3, 1.26.4, 1.26.5, 1.26.6, 1.26.7, 1.27.0, 1.27.1, 1.27.2, 1.27.3, 1.27.4, 1.28.0, 1.28.1, 1.28.2, 1.29.0, 1.29.1, 1.29.2, 1.29.3, 1.29.4, 1.30.0, 1.31.0, 1.31.1, 1.31.2, 1.31.3, 1.31.4, 1.31.5, 1.32.0, 1.32.1, 1.32.2, 1.32.3, 1.33.0, 1.33.1, 1.33.2, 1.33.3, 1.33.4, 1.33.5, 1.33.6, 1.33.7, 1.33.8, 1.33.10, 1.34.0, 1.34.1, 1.34.2, 1.34.3, 1.35.0, 1.35.1, 1.35.2, 1.35.3, 1.35.4, 1.36.0, 1.37.0, 1.37.1, 1.37.2, 1.37.3, 1.37.4, 1.37.5