# 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.

- **Severity:** High 8.6 (`CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`)
- **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:** Yes
- **Published:** 22 Jan 2025
- **Updated:** 13 Oct 2026
- **Also known as:** ALSA-2025:0922, ALSA-2025:0923, ALSA-2025:1372, AZL-55942, AZL-55945, AZL-55953, AZL-55959, BELL-CVE-2024-11218, DEBIAN-CVE-2024-11218, GHSA-5vpc-35f4-r8w6, GO-2025-3414, RHSA-2025:0878, RHSA-2025:0922, RHSA-2025:0923, RHSA-2025:1186, RHSA-2025:1187, RHSA-2025:1188, RHSA-2025:1189, RHSA-2025:1207, RHSA-2025:1275, RHSA-2025:1295, RHSA-2025:1296, RHSA-2025:1372, RHSA-2025:1453, RHSA-2025:1713, RHSA-2025:1910, RHSA-2025:1914, RHSA-2025:2443, RHSA-2025:2456, RHSA-2025:2712, RLSA-2025:0922, RLSA-2025:0923, RLSA-2025:1372, SUSE-SU-2025:0301-1, SUSE-SU-2025:0382-1, UBUNTU-CVE-2024-11218, openSUSE-SU-2025:14689-1

## 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 (Improper Privilege Management)

## Which versions are affected by CVE-2024-11218?

9 open source packages ship an affected version, including github.com/containers/buildah.


| Package | Ecosystem | 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 |
| `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 |
| `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.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-11218 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2024-11218 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/containers/buildah (Go): affected all versions; fixed in 1.33.12, 1.35.5, 1.37.6, 1.38.1
- github.com/containers/buildah (Go): affected all versions; fixed in 1.33.12
- github.com/containers/buildah (Go): affected all versions; fixed in 1.33.12
- github.com/containers/buildah (Go): affected from 1.35.0; fixed in 1.35.5
- github.com/containers/buildah (Go): affected from 1.35.0; fixed in 1.35.5
- github.com/containers/buildah (Go): affected from 1.37.0; fixed in 1.37.6
- github.com/containers/buildah (Go): affected from 1.37.0; fixed in 1.37.6
- github.com/containers/buildah (Go): affected from 1.38.0; fixed in 1.38.1
- github.com/containers/buildah (Go): affected from 1.38.0; fixed in 1.38.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-11218/ (Markdown: https://insights.sbomify.com/CVE-2024-11218/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-11218
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-11218
- OSV: https://osv.dev/vulnerability/CVE-2024-11218

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-11218/
Summaries are generated and may contain mistakes; the official description above is the record.
