Skip to content
Fencer Vulns
high 7.8

CVE-2024-9675 json

Buildah: buildah allows arbitrary directory mount

published 2024-10-09 2 y ago modified 2026-11-04 4 d ago also GHSA-586p-749j-fhwp , GO-2024-3186 , EUVD-2024-2945

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 33%
public exploits
0
none known

Summary

A vulnerability was found in Buildah. Cache mounts do not properly validate that user-specified paths for the cache are within our cache directory, allowing a `RUN` instruction in a Container file to mount an arbitrary directory from the host (read/write) into the container as long as those files can be accessed by the user running Buildah.

Patch / fix

  • go github.com/containers/buildah 1.37.1, 1.38.0
  • Red Hat Red Hat Enterprise Linux 8 8100020241023085649.afee755d
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support 8060020241028154646.3b538bd8
  • Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service 8060020241028154646.3b538bd8
  • Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions 8060020241028154646.3b538bd8
  • Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support 8080020241025064551.0f77c1b7
  • Red Hat Red Hat Enterprise Linux 9 2:1.33.10-1.el9_4, 2:1.37.5-1.el9_5, 4:4.9.4-16.el9_4, 4:5.2.2-9.el9_5
  • Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support 1:1.26.8-2.el9_0, 2:4.2.0-5.el9_0.2
  • Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support 1:1.29.4-1.el9_2, 2:4.4.1-21.el9_2
  • Red Hat Red Hat OpenShift Container Platform 4.12 v4.12.0-202503181728.p0.ge355452.assembly.stream.el8
  • Red Hat Red Hat OpenShift Container Platform 4.13 3:4.4.1-15.rhaos4.13.el8, v4.13.0-202503111300.p0.gb379980.assembly.stream.el8
  • Red Hat Red Hat OpenShift Container Platform 4.14 3:4.4.1-21.rhaos4.14.el8, v4.14.0-202503060906.p0.gb03f3f5.assembly.stream.el8
  • Red Hat Red Hat OpenShift Container Platform 4.15 3:4.4.1-32.rhaos4.15.el8, v4.15.0-202503060734.p0.gbc0b789.assembly.stream.el8
  • Red Hat Red Hat OpenShift Container Platform 4.16 4:4.9.4-12.rhaos4.16.el8, v4.16.0-202503121138.p0.g31c3c26.assembly.stream.el9
  • Red Hat Red Hat OpenShift Container Platform 4.17 5:5.2.2-1.rhaos4.17.el8, v4.17.0-202503041005.p0.gc3b0999.assembly.stream.el9
  • Red Hat Red Hat OpenShift Container Platform 4.18 0:0.6.6-0.rhaos4.18.el9.1, 0:0.9.3-4.el9, 0:0.16.0-20.gitf6c51c9.el9, 0:1.19.1-2.rhaos4.18.el9, 0:1.31.1-3.el9, 0:1.31.5-4.rhaos4.18.gitdad78d5.el8, 0:2.8.10-1.rhaos4.17.el9, 0:2.18.0-6.rhaos4.16.el9, 0:4.6-3.el9_0.3, 0:4.18.0-202411201308.p0.g006fe4e.assembly.stream.el8, 0:4.18.0-202411201308.p0.gc395190.assembly.stream.el8, 0:4.18.0-202412111238.p0.g9c24d76.assembly.stream.el8, 0:4.18.0-202502032331.p0.ga50d4c0.assembly.stream.el8, 0:4.18.0-202502051001.p0.gacb9630.assembly.stream.el8, 0:4.18.0-202502110932.p0.gd2acdd5.assembly.stream.el8, 0:5.14.0-427.50.2.el9_4, 2:1.33.7-4.rhaos4.18.el9, 3:1-86.rhaos4.18.el9, 3:2.1.12-7.rhaos4.18.el9, 4:2.234.2-2.rhaos4.18.el9
  • Red Hat Red Hat Quay 3 v3.13.2-1, v3.13.2-2, v3.13.2-4, v3.13.2-10, v3.13.2-11
  • golang-github-containers-buildah Debian 14, Debian 13 1.37.4+ds1-1

debian advisories DEBIAN-CVE-2024-9675

  • podman openshift 4.15 3:4.4.1-32.rhaos4.15.el8
  • podman openshift 4.15 3:4.4.1-32.rhaos4.15.el9
  • podman-tests openshift 4.15 3:4.4.1-32.rhaos4.15.el8
  • podman-tests openshift 4.15 3:4.4.1-32.rhaos4.15.el9
  • podman-docker openshift 4.15 3:4.4.1-32.rhaos4.15.el8
  • podman-docker openshift 4.15 3:4.4.1-32.rhaos4.15.el9
  • podman-remote openshift 4.15 3:4.4.1-32.rhaos4.15.el8
  • podman-remote openshift 4.15 3:4.4.1-32.rhaos4.15.el9

red hat advisories RHSA-2024:8994RHSA-2024:8984RHSA-2024:9051RHSA-2024:8700RHSA-2024:9459RHSA-2024:9454

  • podman SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +3 more 4.9.5-150300.9.43.1
  • podman Linux Micro 6.0 4.9.5-2.1
  • podman SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Micro 5.4 +3 more 4.9.5-150400.4.35.1
  • buildah SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 1.35.4-150300.8.28.3
  • buildah SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +1 more 1.35.4-150400.3.33.1
  • govulncheck-vulndb SLE Module for Package Hub 15 SP6, SLE Module for Package Hub 15 SP5, openSUSE Leap 15.6 +1 more 0.0.20241030T212825-150000.1.9.1
  • podman SLE Module for Containers 15 SP6, SLE Module for Containers 15 SP5, SLE Micro 5.5 +3 more 4.9.5-150500.3.25.1
  • buildah SLE Module for Containers 15 SP6, SLE Module for Containers 15 SP5, openSUSE Leap 15.6 +1 more 1.35.4-150500.3.16.1

suse advisories SUSE-SU-2025:0775-1SUSE-SU-2025:20080-1SUSE-SU-2025:0267-1SUSE-SU-2024:4303-1SUSE-SU-2024:3988-1SUSE-SU-2024:3911-1

  • govulncheck-vulndb Package Hub 12 0.0.20241104T154416-5.1
  • govulncheck-vulndb openSUSE Tumbleweed 0.0.20241030T212825-1.1
  • buildah openSUSE Tumbleweed 1.37.4-2.1
  • podman openSUSE Tumbleweed 5.2.4-2.1

opensuse advisories openSUSE-SU-2024:0350-1openSUSE-SU-2024:14447-1openSUSE-SU-2024:14405-1openSUSE-SU-2024:14409-1

  • podman AlmaLinux 9 4:5.2.2-9.el9_5
  • podman-tests AlmaLinux 9 4:5.2.2-9.el9_5
  • podman-docker AlmaLinux 9 4:5.2.2-9.el9_5
  • podman-remote AlmaLinux 9 4:5.2.2-9.el9_5
  • podman-plugins AlmaLinux 9 4:5.2.2-9.el9_5
  • buildah AlmaLinux 9 2:1.37.5-1.el9_5
  • buildah-tests AlmaLinux 9 2:1.37.5-1.el9_5
  • podman AlmaLinux 9 4:4.9.4-16.el9_4

almalinux advisories ALSA-2024:9454ALSA-2024:9459ALSA-2024:9051ALSA-2024:8846ALSA-2024:8563

  • podman Rocky Linux 9 4:4.9.4-16.el9_4
  • buildah Rocky Linux 9 2:1.33.10-1.el9_4
  • criu Rocky Linux 8 3.18-5.module+el8.10.0+1815+5fe7415e
  • crun Rocky Linux 8 1.14.3-2.module+el8.10.0+1815+5fe7415e
  • runc Rocky Linux 8 1:1.1.12-5.module+el8.10.0+1874+ce489889
  • udica Rocky Linux 8 0.2.6-21.module+el8.10.0+1815+5fe7415e
  • conmon Rocky Linux 8 3:2.1.10-1.module+el8.10.0+1815+5fe7415e
  • podman Rocky Linux 8 4:4.9.4-15.module+el8.10.0+1880+8e896d1b

rocky linux advisories RLSA-2024:9051RLSA-2024:8563RLSA-2024:8846

  • podman Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 5.2.5-r0
  • buildah Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 1.37.5-r0

alpine advisories ALPINE-CVE-2024-9675

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-9675 updated cvss 7.8

buildah: Buildah allows arbitrary directory mount

  • Red Hat OpenShift Developer Tools and Services ocp-tools-4/jenkins-rhel8, ocp-tools-4/jenkins-agent-base-rhel8
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Enterprise Linux 7 skopeo
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Ironic content for Red Hat OpenShift Container Platform 4.18 crudini 0.9.3-4.el9, pysnmp 4.4.12-6.el9, python-ddt 1.6.0-1.el9, python-pbr 6.0.0-1.el9, python-amqp 5.0.6-1.el9, python-smi 0.3.4-10.el9, +323 more
    fixed: vendor fix RHEA-2024:6126
  • Red Hat Quay v3 quay/clair-rhel8 v3.13.2-1, quay/quay-rhel8 v3.13.2-11, quay/quay-builder-rhel8 v3.13.2-4, quay/quay-operator-rhel8 v3.13.2-1, quay/quay-operator-bundle v3.13.2-10, quay/quay-bridge-operator-rhel8 v3.13.2-1, +4 more
    fixed: vendor fix RHBA-2024:10967
  • Red Hat Enterprise Linux AppStream (v. 8) crit 3.18-5.module+el8.10.0+22397+e3c95ba6, criu 3.18-5.module+el8.10.0+22397+e3c95ba6, crun 1.14.3-2.module+el8.10.0+22397+e3c95ba6, runc 1.1.12-5.module+el8.10.0+22397+e3c95ba6, udica 0.2.6-21.module+el8.10.0+22397+e3c95ba6, conmon 2.1.10-1.module+el8.10.0+22397+e3c95ba6, +27 more
    fixed: vendor fix RHSA-2024:8846
  • Red Hat Enterprise Linux AppStream (v. 9) podman 5.2.2-9.el9_5, podman 4.9.4-16.el9_4, buildah 1.37.5-1.el9_5, buildah 1.33.10-1.el9_4, podman-tests 5.2.2-9.el9_5, podman-docker 5.2.2-9.el9_5, +8 more
    fixed: vendor fix RHSA-2024:8563
  • Red Hat Enterprise Linux AppStream AUS (v.8.6) crun 1.5-1.module+el8.6.0+22399+813f5137, crit 3.15-3.module+el8.6.0+22399+813f5137, criu 3.15-3.module+el8.6.0+22399+813f5137, runc 1.1.12-1.module+el8.6.0+22399+813f5137, udica 0.2.6-5.module+el8.6.0+22399+813f5137, conmon 2.1.4-1.module+el8.6.0+22399+813f5137, +27 more Red Hat Enterprise Linux AppStream E4S (v.8.6) crun 1.5-1.module+el8.6.0+22399+813f5137, crit 3.15-3.module+el8.6.0+22399+813f5137, criu 3.15-3.module+el8.6.0+22399+813f5137, runc 1.1.12-1.module+el8.6.0+22399+813f5137, udica 0.2.6-5.module+el8.6.0+22399+813f5137, conmon 2.1.4-1.module+el8.6.0+22399+813f5137, +27 more
    fixed: vendor fix RHSA-2024:8703
  • Red Hat Enterprise Linux AppStream EUS (v.8.8) crit 3.15-4.module+el8.8.0+22334+bb93e398, criu 3.15-4.module+el8.8.0+22334+bb93e398, crun 1.8.4-2.module+el8.8.0+22334+bb93e398, runc 1.1.12-1.module+el8.8.0+22334+bb93e398, conmon 2.1.6-1.module+el8.8.0+22334+bb93e398, udica 0.2.6-20.module+el8.8.0+22334+bb93e398, +27 more
    fixed: vendor fix RHSA-2024:8707
show 11 more
  • Red Hat Enterprise Linux AppStream EUS (v.9.0) buildah 1.26.8-2.el9_0, podman 4.2.0-5.el9_0.2, buildah-tests 1.26.8-2.el9_0, podman-tests 4.2.0-5.el9_0.2, podman-docker 4.2.0-5.el9_0.2, podman-remote 4.2.0-5.el9_0.2, +3 more
    fixed: vendor fix RHSA-2024:8675
  • Red Hat Enterprise Linux AppStream EUS (v.9.2) podman 4.4.1-21.el9_2, buildah 1.29.4-1.el9_2, podman-tests 4.4.1-21.el9_2, buildah-tests 1.29.4-1.el9_2, podman-docker 4.4.1-21.el9_2, podman-remote 4.4.1-21.el9_2, +2 more
    fixed: vendor fix RHSA-2024:8708
  • Red Hat Enterprise Linux AppStream TUS (v.8.6) crun 1.5-1.module+el8.6.0+22399+813f5137, crit 3.15-3.module+el8.6.0+22399+813f5137, criu 3.15-3.module+el8.6.0+22399+813f5137, runc 1.1.12-1.module+el8.6.0+22399+813f5137, udica 0.2.6-5.module+el8.6.0+22399+813f5137, conmon 2.1.4-1.module+el8.6.0+22399+813f5137, +27 more
    fixed: vendor fix RHSA-2024:8703
  • Red Hat OpenShift Container Platform 4.12 openshift4/ose-docker-builder v4.12.0-202503181728.p0.ge355452.assembly.stream.el8
    fixed: vendor fix RHSA-2025:3573
  • Red Hat OpenShift Container Platform 4.13 podman 4.4.1-15.rhaos4.13.el8, podman 4.4.1-16.rhaos4.13.el9, podman-tests 4.4.1-15.rhaos4.13.el8, podman-tests 4.4.1-16.rhaos4.13.el9, podman-docker 4.4.1-15.rhaos4.13.el8, podman-docker 4.4.1-16.rhaos4.13.el9, +8 more
    fixed: vendor fix RHSA-2025:2701
  • Red Hat OpenShift Container Platform 4.14 podman 4.4.1-21.rhaos4.14.el8, podman 4.4.1-21.rhaos4.14.el9, podman-tests 4.4.1-21.rhaos4.14.el8, podman-tests 4.4.1-21.rhaos4.14.el9, podman-docker 4.4.1-21.rhaos4.14.el8, podman-docker 4.4.1-21.rhaos4.14.el9, +8 more
    fixed: vendor fix RHSA-2025:2710
  • Red Hat OpenShift Container Platform 4.15 podman 4.4.1-32.rhaos4.15.el8, podman 4.4.1-32.rhaos4.15.el9, podman-tests 4.4.1-32.rhaos4.15.el8, podman-tests 4.4.1-32.rhaos4.15.el9, podman-docker 4.4.1-32.rhaos4.15.el8, podman-docker 4.4.1-32.rhaos4.15.el9, +8 more
    fixed: vendor fix RHSA-2025:2454
  • Red Hat OpenShift Container Platform 4.16 podman 4.9.4-12.rhaos4.16.el8, podman 4.9.4-14.rhaos4.16.el9, podman-tests 4.9.4-12.rhaos4.16.el8, podman-tests 4.9.4-14.rhaos4.16.el9, podman-docker 4.9.4-12.rhaos4.16.el8, podman-docker 4.9.4-14.rhaos4.16.el9, +7 more
    fixed: vendor fix RHSA-2024:8686
  • Red Hat OpenShift Container Platform 4.17 podman 5.2.2-1.rhaos4.17.el8, podman 5.2.2-1.rhaos4.17.el9, podman-tests 5.2.2-1.rhaos4.17.el8, podman-tests 5.2.2-1.rhaos4.17.el9, podman-docker 5.2.2-1.rhaos4.17.el8, podman-docker 5.2.2-1.rhaos4.17.el9, +7 more
    fixed: vendor fix RHSA-2024:8984
  • Red Hat OpenShift Container Platform 4.18 cri-tools 1.31.1-3.el9, libreswan 4.6-3.el9_0.3, ovn24.09 24.09.2-14.el9fdp, perf 5.14.0-427.50.2.el9_4, rtla 5.14.0-427.50.2.el9_4, crun 1.19.1-2.rhaos4.18.el9, +114 more
    fixed: vendor fix RHEA-2024:6126
  • Red Hat Enterprise Linux 9 conmon Red Hat Enterprise Linux 10 podman, buildah Red Hat OpenShift Container Platform 4.12 rhcos 412.86.202503310142-0, openshift4/ose-cli v4.12.0-202503181728.p0.gd691257.assembly.stream.el8, openshift4/ose-pod v4.12.0-202503181728.p0.g1eb8682.assembly.stream.el8, openshift4/ose-etcd v4.12.0-202503181728.p0.gbb82e89.assembly.stream.el8, openshift4/ose-tests v4.12.0-202503310133.p0.g893161e.assembly.stream.el8, openshift4/ose-console v4.12.0-202503181728.p0.g3b4ac6a.assembly.stream.el8, +185 more Red Hat OpenShift Container Platform 4.13 cri-tools 1.26.0-7.el8, cri-tools 1.26.0-7.el9, rhcos 413.92.202503112237-0, runc 1.1.14-2.rhaos4.13.el8, runc 1.1.14-2.rhaos4.13.el9, conmon 2.1.7-5.rhaos4.13.el8, +223 more Red Hat OpenShift Container Platform 4.14 libreswan 4.5-1.el9, cri-tools 1.27.0-6.el8, cri-tools 1.27.0-6.el9, rhcos 414.92.202503100617-0, runc 1.1.14-2.rhaos4.14.el8, runc 1.1.14-2.rhaos4.14.el9, +235 more Red Hat OpenShift Container Platform 4.15 perf 5.14.0-284.92.1.el9_2, rtla 5.14.0-284.92.1.el9_2, rhcos 415.92.202503060749-0, bpftool 7.0.0-284.92.1.el9_2, kernel 5.14.0-284.92.1.el9_2, kernel-64k 5.14.0-284.92.1.el9_2, +249 more
    +3 more products
    Red Hat OpenShift Container Platform 4.16 rhcos 416.94.202503252048-0, openshift 4.16.0-202410231936.p0.g5865c5b.assembly.stream.el8, openshift 4.16.0-202410231936.p0.g5865c5b.assembly.stream.el9, openshift-kubelet 4.16.0-202410231936.p0.g5865c5b.assembly.stream.el8, openshift-kubelet 4.16.0-202410231936.p0.g5865c5b.assembly.stream.el9, openshift-hyperkube 4.16.0-202410231936.p0.g5865c5b.assembly.stream.el8, +197 more Red Hat OpenShift Container Platform 4.17 perf 5.14.0-427.44.1.el9_4, rtla 5.14.0-427.44.1.el9_4, rhcos 417.94.202503060903-0, bpftool 7.3.0-427.44.1.el9_4, kernel 5.14.0-427.44.1.el9_4, kernel-rt 5.14.0-427.44.1.el9_4, +109 more Red Hat OpenShift Container Platform 4.18 rhcos 418.94.202503061016-0, openshift4/ose-etcd-rhel9 v4.18.0-202502262002.p0.gafac40f.assembly.stream.el9, openshift4/ose-tests-rhel9 v4.18.0-202503050303.p0.gc89253a.assembly.stream.el9, openshift4/ose-tools-rhel9 v4.18.0-202503050303.p0.geb9bc9b.assembly.stream.el9, openshift4/ose-ironic-rhel9 v4.18.0-202503061003.p0.gb288ebe.assembly.stream.el9, openshift4/ose-console-rhel9 v4.18.0-202503051833.p0.g87e68aa.assembly.stream.el9, +35 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.39% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 4.4 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
GitHub 3.1 4.4 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
go github.com/containers/buildah
<1.38.0
<1.37.1
1.38.0
1.37.1

Affected products

  • Red Hat Red Hat Enterprise Linux 8
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  • Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service
  • Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support
  • Red Hat Red Hat Enterprise Linux 9
  • Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support
  • Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support
  • Red Hat Red Hat OpenShift Container Platform 4.12
  • Red Hat Red Hat OpenShift Container Platform 4.13
  • Red Hat Red Hat OpenShift Container Platform 4.14
  • Red Hat Red Hat OpenShift Container Platform 4.15
  • Red Hat Red Hat OpenShift Container Platform 4.16
  • Red Hat Red Hat OpenShift Container Platform 4.17
  • Red Hat Red Hat OpenShift Container Platform 4.18
  • Red Hat Red Hat Quay 3
  • Red Hat OpenShift Developer Tools and Services
  • Red Hat Red Hat Enterprise Linux 10
  • Red Hat Red Hat Enterprise Linux 7

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.