CVE-2024-11218 Podman: buildah: container breakout by using --jobs=2 and a race condition when building a malicious containerfile
Attackers can escape containers and read host files via a race condition in Podman/Buildah when using parallel jobs with malicious Containerfiles.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-11218?
CVE-2024-11218 is a high-severity vulnerability in Red Hat Enterprise Linux 10, published on 22 Jan 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
A vulnerability was found in `podman build` and `buildah.` This issue occurs in a container breakout by using --jobs=2 and a race condition when building a malicious Containerfile. SELinux might mitigate it, but even with SELinux on, it still allows the enumeration of files and directories on the host.
Weakness: CWE-269
Which versions are affected by CVE-2024-11218?
9 open source packages ship an affected version, including github.com/containers/buildah.
| Package | Affected | Fixed in |
|---|---|---|
github.com/containers/buildah Go | All versions | 1.33.12, 1.35.5, 1.37.6, 1.38.1 |
github.com/containers/buildah Go | All versions | 1.33.12 |
github.com/containers/buildah Go | All versions | 1.33.12 |
github.com/containers/buildah Go | From 1.35.0 | 1.35.5 |
github.com/containers/buildah Go | From 1.35.0 | 1.35.5 |
github.com/containers/buildah Go | From 1.37.0 | 1.37.6 |
3 more packages
github.com/containers/buildah Go | From 1.37.0 | 1.37.6 |
github.com/containers/buildah Go | From 1.38.0 | 1.38.1 |
github.com/containers/buildah Go | From 1.38.0 | 1.38.1 |
Linux distribution packages (31)
aardvark-dns AlmaLinux:8 | All versions | 2:1.10.1-2.module_el8.10.0+3901+4b80ecd7 |
aardvark-dns AlmaLinux:8 | All versions | 2:1.10.1-2.module_el8.10.0+3909+6e1c1eb7 |
aardvark-dns AlmaLinux:8 | All versions | 2:1.10.1-2.module_el8.10.0+3926+f12484f5 |
buildah AlmaLinux:8 | All versions | 2:1.33.12-1.module_el8.10.0+3959+b8dc5e6a |
buildah-tests AlmaLinux:8 | All versions | 2:1.33.12-1.module_el8.10.0+3959+b8dc5e6a |
cockpit-podman AlmaLinux:8 | All versions | 84.1-1.module_el8.10.0+3876+e55593a8 |
conmon AlmaLinux:8 | All versions | 3:2.1.10-1.module_el8.10.0+3845+87b84552 |
conmon AlmaLinux:8 | All versions | 3:2.1.10-1.module_el8.10.0+3876+e55593a8 |
conmon AlmaLinux:8 | All versions | 3:2.1.10-1.module_el8.10.0+3901+4b80ecd7 |
conmon AlmaLinux:8 | All versions | 3:2.1.10-1.module_el8.10.0+3909+6e1c1eb7 |
container-selinux AlmaLinux:8 | All versions | 2:2.229.0-2.module_el8.10.0+3909+6e1c1eb7 |
containernetworking-plugins AlmaLinux:8 | All versions | 1:1.4.0-5.module_el8.10.0+3876+e55593a8 |
containernetworking-plugins AlmaLinux:8 | All versions | 1:1.4.0-5.module_el8.10.0+3909+6e1c1eb7 |
containernetworking-plugins AlmaLinux:8 | All versions | 1:1.4.0-5.module_el8.10.0+3926+f12484f5 |
containers-common AlmaLinux:8 | All versions | 2:1-82.module_el8.10.0+3876+e55593a8 |
containers-common AlmaLinux:8 | All versions | 2:1-82.module_el8.10.0+3901+4b80ecd7 |
crit AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3845+87b84552 |
crit AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3858+6ad51f9f |
crit AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3901+4b80ecd7 |
criu AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3876+e55593a8 |
criu AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3909+6e1c1eb7 |
criu AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3926+f12484f5 |
criu-devel AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3858+6ad51f9f |
criu-devel AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3876+e55593a8 |
criu-devel AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3926+f12484f5 |
criu-libs AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3845+87b84552 |
criu-libs AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3909+6e1c1eb7 |
criu-libs AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3926+f12484f5 |
crun AlmaLinux:8 | All versions | 1.14.3-2.module_el8.10.0+3845+87b84552 |
crun AlmaLinux:8 | All versions | 1.14.3-2.module_el8.10.0+3909+6e1c1eb7 |
crun AlmaLinux:8 | All versions | 1.14.3-2.module_el8.10.0+3926+f12484f5 |
How do I fix CVE-2024-11218?
Upgrade github.com/containers/buildah to a fixed version for your release line: 1.33.12, 1.35.5, 1.37.6 or 1.38.1.
Is CVE-2024-11218 being exploited?
There is no known exploitation of CVE-2024-11218 in the wild and no public exploit code.
Sources
Also known as ALSA-2025:0922, ALSA-2025:0923, ALSA-2025:1372, AZL-55942, AZL-55945, AZL-55953 and 31 more.