Medium severity · published Mar 3, 2022
CVE-2021-3602
An information disclosure flaw was found in Buildah, when building containers using chroot isolation
5.5
CVSS
0.3%
EPSS
No
On KEV
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).
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 26% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BU
Buildah · Buildah Project
before 1.16.8; 1.17.0 before 1.17.2; 1.19.0 before 1.19.9; 1.21.0 before 1.21.3 · source: NVD
EL
Enterprise Linux · Redhat
8.0 · source: NVD
EL
Enterprise Linux For Ibm Z Systems · Redhat
8.0 · source: NVD
EL
Enterprise Linux For Power Little Endian · Redhat
8.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-3602
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-3602
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=1969264
Patch
https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0
Third Party Advisory
https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj
Patch
https://ubuntu.com/security/CVE-2021-3602
More from Buildah
8.8
CVE-2020-10696
A path traversal flaw was found in Buildah in versions before 1.14.5
7.1
CVE-2022-2990
An incorrect handling of the supplementary groups in the Buildah container engine might lead to the sensitive information disclosure or possible data modification if an attacker…
6.8
CVE-2022-27651
A flaw was found in buildah where containers were incorrectly started with non-empty default permissions
5.9
CVE-2019-10214
The containers/image library used by the container tools Podman, Buildah, and Skopeo in Red Hat Enterprise Linux version 8 and CRI-O in OpenShift Container Platform, does not…
4.4
CVE-2024-9675
A vulnerability was found in Buildah
