CVE-2024-11218 — Vulnerability in containers/buildah — CVE Details
Buildah allows build breakout using malicious Containerfiles and concurrent builds
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.41%). Schedule for your next planned update.
Does your project use an affected github.com/containers/buildah version?
Paste your go.sum to check it for CVE-2024-11218 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published January 21, 2025 (674 days ago).
- Last revised September 10, 2026 — 596 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/containers/buildah@v1.35.5
go get github.com/containers/buildah@v1.37.6
go get github.com/containers/buildah@v1.33.12
go get github.com/containers/buildah@v1.38.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/containers/buildah Go · Affected: All versions | 1.35.5 |
| github.com/containers/buildah Go · Affected: All versions | 1.37.6 |
| github.com/containers/buildah Go · Affected: All versions | 1.33.12 |
| github.com/containers/buildah Go · Affected: All versions | 1.38.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-269Improper Privilege ManagementMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
References
- https://github.com/containers/buildah/security/advisories/GHSA-5vpc-35f4-r8w6WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-11218ADVISORY
- https://github.com/containers/buildah/pull/5918WEB
- https://access.redhat.com/errata/RHSA-2025:0830WEB
- https://access.redhat.com/errata/RHSA-2025:2441WEB
- https://access.redhat.com/errata/RHSA-2025:2443WEB
- https://access.redhat.com/errata/RHSA-2025:2454WEB
- https://access.redhat.com/errata/RHSA-2025:2456WEB
- https://access.redhat.com/errata/RHSA-2025:2701WEB
- https://access.redhat.com/errata/RHSA-2025:2703WEB
- https://access.redhat.com/errata/RHSA-2025:2710WEB
- https://access.redhat.com/errata/RHSA-2025:2712WEB
- https://access.redhat.com/errata/RHSA-2025:3577WEB
- https://access.redhat.com/errata/RHSA-2025:3798WEB
- https://access.redhat.com/security/cve/CVE-2024-11218WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2326231WEB
- https://github.com/containers/buildahPACKAGE
- https://issues.redhat.com/browse/RHEL-67616WEB
- https://issues.redhat.com/browse/RHEL-67618WEB
- https://access.redhat.com/errata/RHSA-2025:0878WEB
- https://access.redhat.com/errata/RHSA-2025:0922WEB
- https://access.redhat.com/errata/RHSA-2025:0923WEB
- https://access.redhat.com/errata/RHSA-2025:1186WEB
- https://access.redhat.com/errata/RHSA-2025:1187WEB
- https://access.redhat.com/errata/RHSA-2025:1188WEB
- https://access.redhat.com/errata/RHSA-2025:1189WEB
- https://access.redhat.com/errata/RHSA-2025:1207WEB
- https://access.redhat.com/errata/RHSA-2025:1275WEB
- https://access.redhat.com/errata/RHSA-2025:1295WEB
- https://access.redhat.com/errata/RHSA-2025:1296WEB
- https://access.redhat.com/errata/RHSA-2025:1372WEB
- https://access.redhat.com/errata/RHSA-2025:1453WEB
- https://access.redhat.com/errata/RHSA-2025:1707WEB
- https://access.redhat.com/errata/RHSA-2025:1713WEB
- https://access.redhat.com/errata/RHSA-2025:1908WEB
- https://access.redhat.com/errata/RHSA-2025:1910WEB
- https://access.redhat.com/errata/RHSA-2025:1914WEB
Frequently Asked Questions
- What is CVE-2024-11218?
- Buildah allows build breakout using malicious Containerfiles and concurrent builds. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.6/10).
- How do I check if my project is affected by CVE-2024-11218?
- CVE-2024-11218 affects github.com/containers/buildah. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-11218 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 26.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-94603CRITICAL
Podman: The `podman run` command can be instructed to disable almost all sandboxing by image annotation
- CVE-2026-57231HIGH
Podman: Malformed Image can trick podman run into leaking host environment variables into the container
- CVE-2026-108262HIGH
DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885
- CVE-2026-130007HIGH
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution