cve.bz

CVE-2021-3602

5.5 mediumEPSS 0.3%

Medium (5.5). EPSS 0.3% chance of exploitation in the next 30 days. Fixed in github.com/containers/buildah 1.16.8, 1.17.2, 1.19.9.

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

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.3% chance of exploitation in the next 30 days; higher than 25% of CVEs (scores of 2026-10-31)
CWEs
CWE-212, CWE-200
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7638-r9r3-rmjjGogithub.com/containers/buildah<1.16.81.16.8
GHSA-7638-r9r3-rmjjGogithub.com/containers/buildah>=1.17.0 <1.17.21.17.2
GHSA-7638-r9r3-rmjjGogithub.com/containers/buildah>=1.18.0 <1.19.91.19.9
GHSA-7638-r9r3-rmjjGogithub.com/containers/buildah>=1.20.0 <1.21.31.21.3
GO-2022-0345Gogithub.com/containers/buildah<1.22.01.22.0

References

Check your stackJSON