Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/containers/buildah
  4. ›
  5. CVE-2024-11218

CVE-2024-11218: Buildah allows build breakout using malicious Containerfiles and concurrent builds

January 21, 2025 (updated April 16, 2025)

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.

References

  • access.redhat.com/errata/RHSA-2025:0830
  • access.redhat.com/errata/RHSA-2025:0878
  • access.redhat.com/errata/RHSA-2025:0922
  • access.redhat.com/errata/RHSA-2025:0923
  • access.redhat.com/errata/RHSA-2025:1186
  • access.redhat.com/errata/RHSA-2025:1187
  • access.redhat.com/errata/RHSA-2025:1188
  • access.redhat.com/errata/RHSA-2025:1189
  • access.redhat.com/errata/RHSA-2025:1207
  • access.redhat.com/errata/RHSA-2025:1275
  • access.redhat.com/errata/RHSA-2025:1295
  • access.redhat.com/errata/RHSA-2025:1296
  • access.redhat.com/errata/RHSA-2025:1372
  • access.redhat.com/errata/RHSA-2025:1453
  • access.redhat.com/errata/RHSA-2025:1707
  • access.redhat.com/errata/RHSA-2025:1713
  • access.redhat.com/errata/RHSA-2025:1908
  • access.redhat.com/errata/RHSA-2025:1910
  • access.redhat.com/errata/RHSA-2025:1914
  • access.redhat.com/errata/RHSA-2025:2441
  • access.redhat.com/errata/RHSA-2025:2443
  • access.redhat.com/errata/RHSA-2025:2454
  • access.redhat.com/errata/RHSA-2025:2456
  • access.redhat.com/errata/RHSA-2025:2701
  • access.redhat.com/errata/RHSA-2025:2703
  • access.redhat.com/errata/RHSA-2025:2710
  • access.redhat.com/errata/RHSA-2025:2712
  • access.redhat.com/errata/RHSA-2025:3577
  • access.redhat.com/errata/RHSA-2025:3798
  • access.redhat.com/security/cve/CVE-2024-11218
  • bugzilla.redhat.com/show_bug.cgi?id=2326231
  • github.com/advisories/GHSA-5vpc-35f4-r8w6
  • github.com/containers/buildah
  • github.com/containers/buildah/security/advisories/GHSA-5vpc-35f4-r8w6
  • issues.redhat.com/browse/RHEL-67616
  • issues.redhat.com/browse/RHEL-67618
  • nvd.nist.gov/vuln/detail/CVE-2024-11218

Code Behaviors & Features

Detect and mitigate CVE-2024-11218 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.33.12, all versions starting from 1.35.0 before 1.35.5, all versions starting from 1.37.0 before 1.37.6, all versions starting from 1.38.0 before 1.38.1

Fixed versions

  • 1.38.1
  • 1.37.6
  • 1.35.5
  • 1.33.12

Solution

Upgrade to versions 1.33.12, 1.35.5, 1.37.6, 1.38.1 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-269: Improper Privilege Management

Source file

go/github.com/containers/buildah/CVE-2024-11218.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:54 +0000.