CVE-2021-3602GO-2022-0345GHSA-7638-R9R3-RMJJ
An information disclosure flaw was found in Buildah, when building containers using chroot isolation.
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 1.22.0, 1.16.8, 1.17.2, 1.19.9, 1.21.3
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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).
Timeline
- CVE published
- Record last updated
Affected versions
- n/a buildah
Version range not reported
- github.com/containers/buildahGo
fixed in 1.22.0
- github.com/containers/buildahGo
fixed in 1.16.8
- github.com/containers/buildahGo
From 1.17.0 · fixed in 1.17.2
- github.com/containers/buildahGo
From 1.18.0 · fixed in 1.19.9
- github.com/containers/buildahGo
From 1.20.0 · fixed in 1.21.3