LowGO-2022-0345CVE-2021-3602GHSA-7638-r9r3-rmjj
Environment variable leakage in github.com/containers/buildah
Published 15 Jul 2022 · Updated 4 Feb 2026
Is your project on an affected github.com/containers/buildah?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.22.0
- Fixed in
- 1.22.0
Update to the fixed version for your release line, for example:
go get github.com/containers/buildah@v1.22.0Details
The RunUsingChroot function unintentionally propagates environment variables from the current process to the child process.
Is GO-2022-0345 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/containers/buildah, and gives you the command that fixes it.
More advisories for github.com/containers/buildah
- LowCVE-2026-44517Build breakout using malicious Containerfile or Git HTTP server in github.com/containers/buildah · 27 Jul 2026
- MediumCVE-2026-44517Build breakout using malicious Containerfile and Git Smart HTTP server or GitHub release tar archive · 22 Jun 2026
- LowCVE-2024-11218Buildah allows build breakout using malicious Containerfiles and concurrent builds in github.com/containers/buildah · 28 Jan 2025
- HighCVE-2024-11218Buildah allows build breakout using malicious Containerfiles and concurrent builds · 21 Jan 2025
- LowCVE-2024-9675Buildah allows arbitrary directory mount in github.com/containers/buildah · 11 Oct 2024
- LowCVE-2024-9407Improper Input Validation in Buildah and Podman in github.com/containers/buildah · 9 Oct 2024
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.