CVE-2021-3602
Published:March 03, 2022
Updated:June 26, 2026
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).
Affected Packages
github.com/containers/buildah (GO):
Affected version(s) >=v1.18.0 <v1.19.9Fix Suggestion:
Update to version v1.19.9github.com/containers/buildah (GO):
Affected version(s) >=v1.17.0 <v1.17.2Fix Suggestion:
Update to version v1.17.2github.com/containers/buildah (GO):
Affected version(s) >=v1.20.0 <v1.21.3Fix Suggestion:
Update to version v1.21.3Related Resources (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.8
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.5
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
EPSS
Base Score:
0.32