High [CVE-2024-11218] Podman: buildah: container breakout by using --jobs=2 and a race condition when building a malicious containerfile
This high-severity Red Hat Linux advisory covers CVE-2024-11218 affecting Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support, Red Hat Enterprise Linux 8.6 Telecommunications Update Service, Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions.
Android app · Google Play
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.
Summary
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.
This vulnerability marked as important severity rather than moderate because it allows a malicious Containerfile to exploit the `--mount` flag in `RUN` instructions to directly interact with the build host's filesystem.
By leveraging this, an attacker can gain unauthorized access to sensitive files or inject malicious content using the privileges of the build process.
In environments where the build process is executed by a root-owned Podman system service exposed to unprivileged users, this vulnerability escalates to a high level, as it enables unauthorized read/write access to high-privilege files, such as setuid executables. Red Hat severity: Important — CVSS 8.6 (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H).
Weakness: CWE-269.
Affected products named by the advisory: Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support; Red Hat Enterprise Linux 8.6 Telecommunications Update Service; Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions; Red Hat Enterprise Linux 8.8 Extended Update Support; and 13 more.
Affected versions
No affected-version range was extracted from the source record. The vendor advisory is authoritative — check it before change work.
Official advisory · high-confidence parse· fetched 1 hour ago·verify at source
- container-tools:rhel8-8100020250124120243.afee755d
- container-tools:rhel8-8060020250203202123.3b538bd8
- container-tools:rhel8-8080020250207173112.0f77c1b7
- podman-4:5.2.2-13.el9_5
- buildah-2:1.37.6-1.el9_5
- podman-2:4.2.0-6.el9_0
- buildah-1:1.26.9-1.el9_0
- buildah-1:1.29.5-1.el9_2
- podman-2:4.4.1-22.el9_2
- buildah-2:1.33.12-2.el9_4
- podman-4:4.9.4-17.el9_4
- rhcos-412.86.202503052321-0
- podman-3:4.2.0-13.rhaos4.12.el9
- buildah-1:1.29.5-1.rhaos4.13.el8
- podman-3:4.4.1-16.rhaos4.13.el8
- rhcos-413.92.202503112237-0
- podman-3:4.4.1-22.rhaos4.14.el8
- buildah-1:1.29.5-1.rhaos4.14.el8
- rhcos-414.92.202503100617-0
- podman-3:4.4.1-33.rhaos4.15.el8
- buildah-1:1.29.5-1.rhaos4.15.el8
- rhcos-415.92.202503060749-0
- podman-4:4.9.4-13.rhaos4.16.el8
- buildah-2:1.33.12-1.rhaos4.16.el8
- rhcos-416.94.202502180249-0
- podman-5:5.2.2-2.rhaos4.17.el8
- buildah-2:1.33.12-1.rhaos4.17.el8
- rhcos-417.94.202504080421-0
- buildah-2:1.33.12-1.rhaos4.18.el9
- rhcos-418.94.202504021150-0
- RHSA-2025:1372
- RHSA-2025:1207
- RHSA-2025:1275
- RHSA-2025:0922
- RHSA-2025:0923
- RHSA-2025:1186
- RHSA-2025:1187
- RHSA-2025:1295
- RHSA-2025:1296
- RHSA-2025:1188
- RHSA-2025:1189
- RHSA-2025:2441
- RHSA-2025:2443
- RHSA-2025:2703
- RHSA-2025:2701
- RHSA-2025:1453
- RHSA-2025:2712
- RHSA-2025:2710
- RHSA-2025:1713
- RHSA-2025:2456
Official advisory · high-confidence parse· fetched 1 hour ago·verify at source
Mitigation checklist
- Mandatory access controls should limit the access of the process performing the build, on systems where they are enabled. SELinux enforces strict access controls by confining the build process (e.g., Podman) to specific domains like container_t. This prevents unauthorized access to sensitive host files and directories, even if a malicious Containerfile tries to exploit the --mount flag.
Official advisory · high-confidence parse· fetched 1 hour ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.