ghsa-5vpc-35f4-r8w6
Vulnerability from github
Published
2025-01-21 21:22
Modified
2025-03-13 21:40
Summary
Buildah allows build breakout using malicious Containerfiles and concurrent builds
Details

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.

Show details on source website


{
   affected: [
      {
         package: {
            ecosystem: "Go",
            name: "github.com/containers/buildah",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "1.38.0",
                  },
                  {
                     fixed: "1.38.1",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
      {
         package: {
            ecosystem: "Go",
            name: "github.com/containers/buildah",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "1.37.0",
                  },
                  {
                     fixed: "1.37.6",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
      {
         package: {
            ecosystem: "Go",
            name: "github.com/containers/buildah",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "1.35.0",
                  },
                  {
                     fixed: "1.35.5",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
      {
         package: {
            ecosystem: "Go",
            name: "github.com/containers/buildah",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "0",
                  },
                  {
                     fixed: "1.33.12",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
   ],
   aliases: [
      "CVE-2024-11218",
   ],
   database_specific: {
      cwe_ids: [
         "CWE-269",
      ],
      github_reviewed: true,
      github_reviewed_at: "2025-01-21T21:22:49Z",
      nvd_published_at: "2025-01-22T05:15:08Z",
      severity: "HIGH",
   },
   details: "### Impact\nWith 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.\n\n### Patches\nPatches 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.\n\nThis 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.\n\n### Workarounds\nMandatory access controls should limit the access of the process performing the build, on systems where they are enabled.",
   id: "GHSA-5vpc-35f4-r8w6",
   modified: "2025-03-13T21:40:58Z",
   published: "2025-01-21T21:22:49Z",
   references: [
      {
         type: "WEB",
         url: "https://github.com/containers/buildah/security/advisories/GHSA-5vpc-35f4-r8w6",
      },
      {
         type: "ADVISORY",
         url: "https://nvd.nist.gov/vuln/detail/CVE-2024-11218",
      },
      {
         type: "WEB",
         url: "https://issues.redhat.com/browse/RHEL-67618",
      },
      {
         type: "WEB",
         url: "https://issues.redhat.com/browse/RHEL-67616",
      },
      {
         type: "PACKAGE",
         url: "https://github.com/containers/buildah",
      },
      {
         type: "WEB",
         url: "https://bugzilla.redhat.com/show_bug.cgi?id=2326231",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/security/cve/CVE-2024-11218",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:2456",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:2454",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:2443",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:2441",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1914",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1910",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1908",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1713",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1707",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1453",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1372",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1296",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1295",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1275",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1207",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1189",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1188",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1187",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:1186",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:0923",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:0922",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:0878",
      },
      {
         type: "WEB",
         url: "https://access.redhat.com/errata/RHSA-2025:0830",
      },
   ],
   schema_version: "1.4.0",
   severity: [
      {
         score: "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H",
         type: "CVSS_V3",
      },
   ],
   summary: "Buildah allows build breakout using malicious Containerfiles and concurrent builds",
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.