Security mailing lists by PureSourceCode

CVE-2021-3602

MEDIUM 5.5CVSS 3.1

Buildah processes using chroot isolation may leak environment values to intermediate processes

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

Published
3 Mar 2022
Last modified
10 Sep 2026
Assigned by
secalert@redhat.com
NVD status
Modified
Weakness
CWE-200CWE-212
Also known as
GHSA-7638-r9r3-rmjjGO-2022-0345
Sources
NVDJSONOSV GHSA-7638-r9r3-rmjjJSONOSV GO-2022-0345JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 LOW 1.9 AV:L/AC:M/Au:N/C:P/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD buildah_project buildah
cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:*
< 1.16.8 1.16.8
NVD buildah_project buildah
cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:*
>= 1.17.0, < 1.17.2 1.17.2
NVD buildah_project buildah
cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:*
>= 1.19.0, < 1.19.9 1.19.9
NVD buildah_project buildah
cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:*
>= 1.21.0, < 1.21.3 1.21.3
NVD redhat enterprise_linux
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
= 8.0
NVD redhat enterprise_linux_for_ibm_z_systems
cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:*
= 8.0
NVD redhat enterprise_linux_for_power_little_endian
cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:*
= 8.0
OSV Go github.com/containers/buildah < 1.16.8 1.16.8
OSV Go github.com/containers/buildah >= 1.17.0, < 1.17.2 1.17.2
OSV Go github.com/containers/buildah >= 1.18.0, < 1.19.9 1.19.9
OSV Go github.com/containers/buildah >= 1.20.0, < 1.21.3 1.21.3
OSV Go github.com/containers/buildah < 1.22.0 1.22.0

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 3 Mar 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Jul 2022)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 Jul 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.