GHSA-5vpc-35f4-r8w6
Buildah allows build breakout using malicious Containerfiles and concurrent builds
At a glance
- Published
- Updated
- CVE
- CVE-2024-11218
- Aliases
- GO-2025-3414
- CVSS_V3
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Description
### Impact With careful use of the `--mount` flag in RUN instructions in Containerfiles, and by using either multi-stage builds with use of concurrently-executing build stages (e.g., using the `--jobs` CLI flag) or multiple separate but concurrently-executing builds, a malicious Containerfile can be used to expose content from the build host to the command being run using the RUN instruction. This can be used to read or write contents using the privileges of the process which is performing the build. When that process is a root-owned podman system service which is provided for use by unprivileged users, this includes the ability to read and write contents which the client should not be allowed to read and write, including setuid executables in locations where they can be later accessed by unprivileged users. ### Patches Patches have been merged to the main branch, and will be added to upcoming releases on the release-1.38, release-1.37, release-1.35, and release-1.33 branches. This addressed a number of Jira cards, but primarily https://issues.redhat.com/browse/RHEL-67616 and https://issues.redhat.com/browse/RHEL-67618, which were then vendored into Podman and backported into olde rbranches. ### Workarounds Mandatory access controls should limit the access of the process performing the build, on systems where they are enabled.
Affected packages
| Package | Versions |
|---|---|
| Go · github.com/containers/buildah | introduced 1.38.0, fixed 1.38.1 |
| Go · github.com/containers/buildah | introduced 1.37.0, fixed 1.37.6 |
| Go · github.com/containers/buildah | introduced 1.35.0, fixed 1.35.5 |
| Go · github.com/containers/buildah | introduced 0, fixed 1.33.12 |
References
- https://github.com/containers/buildah/security/advisories/GHSA-5vpc-35f4-r8w6 WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-11218 ADVISORY
- https://github.com/containers/buildah/pull/5918 WEB
- https://access.redhat.com/errata/RHSA-2025:0830 WEB
- https://access.redhat.com/errata/RHSA-2025:2441 WEB
- https://access.redhat.com/errata/RHSA-2025:2443 WEB
- https://access.redhat.com/errata/RHSA-2025:2454 WEB
- https://access.redhat.com/errata/RHSA-2025:2456 WEB
- https://access.redhat.com/errata/RHSA-2025:2701 WEB
- https://access.redhat.com/errata/RHSA-2025:2703 WEB
- https://access.redhat.com/errata/RHSA-2025:2710 WEB
- https://access.redhat.com/errata/RHSA-2025:2712 WEB
- https://access.redhat.com/errata/RHSA-2025:3577 WEB
- https://access.redhat.com/errata/RHSA-2025:3798 WEB
- https://access.redhat.com/security/cve/CVE-2024-11218 WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2326231 WEB
- https://github.com/containers/buildah PACKAGE
- https://issues.redhat.com/browse/RHEL-67616 WEB
- https://issues.redhat.com/browse/RHEL-67618 WEB
- https://access.redhat.com/errata/RHSA-2025:0878 WEB
- https://access.redhat.com/errata/RHSA-2025:0922 WEB
- https://access.redhat.com/errata/RHSA-2025:0923 WEB
- https://access.redhat.com/errata/RHSA-2025:1186 WEB
- https://access.redhat.com/errata/RHSA-2025:1187 WEB
- https://access.redhat.com/errata/RHSA-2025:1188 WEB
- https://access.redhat.com/errata/RHSA-2025:1189 WEB
- https://access.redhat.com/errata/RHSA-2025:1207 WEB
- https://access.redhat.com/errata/RHSA-2025:1275 WEB
- https://access.redhat.com/errata/RHSA-2025:1295 WEB
- https://access.redhat.com/errata/RHSA-2025:1296 WEB
- https://access.redhat.com/errata/RHSA-2025:1372 WEB
- https://access.redhat.com/errata/RHSA-2025:1453 WEB
- https://access.redhat.com/errata/RHSA-2025:1707 WEB
- https://access.redhat.com/errata/RHSA-2025:1713 WEB
- https://access.redhat.com/errata/RHSA-2025:1908 WEB
- https://access.redhat.com/errata/RHSA-2025:1910 WEB
- https://access.redhat.com/errata/RHSA-2025:1914 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |