Container escape at build time in github.com/containers/buildah
Published 22 Mar 2024 · 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.35.1
- Fixed in
- 1.35.1
go get github.com/containers/buildah@v1.35.1Details
A crafted container file can use a dummy image with a symbolic link to the host filesystem as a mount source and cause the mount operation to mount the host filesystem during a build-time RUN step. The commands inside the RUN step will then have read-write access to the host filesystem.
Is GO-2024-2658 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.