HighCVE-2024-9675

    Buildah: buildah allows arbitrary directory mount (CVE-2024-9675)

    Published Sources: Red Hat, OSV, CVE.org, Msrc Update Guide

    What is affected, what to do

    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.

    Update Buildah to version 1.38.0, Red Hat Enterprise Linux 8 to version 8100020241023085649.afee755d, Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support to version 8060020241028154646.3b538bd8.

    Affected
    • Buildah lt *..1.38.0
    • Red Hat Enterprise Linux 8 lt *..8100020241023085649.afee755d
    • Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support lt *..8060020241028154646.3b538bd8
    • Red Hat Enterprise Linux 8.6 Telecommunications Update Service lt *..8060020241028154646.3b538bd8
    • Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions lt *..8060020241028154646.3b538bd8
    • Red Hat Enterprise Linux 8.8 Extended Update Support lt *..8080020241025064551.0f77c1b7
    • Red Hat Enterprise Linux 9 lt *..2:1.33.10-1.el9_4
    • Red Hat Enterprise Linux 9 lt *..4:4.9.4-16.el9_4
    • Red Hat Enterprise Linux 9 lt *..4:5.2.2-9.el9_5
    • Red Hat Enterprise Linux 9 lt *..2:1.37.5-1.el9_5
    • Red Hat Enterprise Linux 9.0 Extended Update Support lt *..1:1.26.8-2.el9_0
    • Red Hat Enterprise Linux 9.0 Extended Update Support lt *..2:4.2.0-5.el9_0.2
    • Red Hat Enterprise Linux 9.2 Extended Update Support lt *..1:1.29.4-1.el9_2
    • Red Hat Enterprise Linux 9.2 Extended Update Support lt *..2:4.4.1-21.el9_2
    • Red Hat OpenShift Container Platform 4.12 lt *..v4.12.0-202503181728.p0.ge355452.assembly.stream.el8
    • Red Hat OpenShift Container Platform 4.13 lt *..3:4.4.1-15.rhaos4.13.el8
    • Red Hat OpenShift Container Platform 4.13 lt *..v4.13.0-202503111300.p0.gb379980.assembly.stream.el8
    • Red Hat OpenShift Container Platform 4.14 lt *..3:4.4.1-21.rhaos4.14.el8
    • Red Hat OpenShift Container Platform 4.14 lt *..v4.14.0-202503060906.p0.gb03f3f5.assembly.stream.el8
    • Red Hat OpenShift Container Platform 4.15 lt *..3:4.4.1-32.rhaos4.15.el8
    • Red Hat OpenShift Container Platform 4.15 lt *..v4.15.0-202503060734.p0.gbc0b789.assembly.stream.el8
    • Red Hat OpenShift Container Platform 4.16 lt *..4:4.9.4-12.rhaos4.16.el8
    • Red Hat OpenShift Container Platform 4.16 lt *..v4.16.0-202503121138.p0.g31c3c26.assembly.stream.el9
    • Red Hat OpenShift Container Platform 4.17 lt *..5:5.2.2-1.rhaos4.17.el8
    • Red Hat OpenShift Container Platform 4.17 lt *..v4.17.0-202503041005.p0.gc3b0999.assembly.stream.el9
    • Red Hat OpenShift Container Platform 4.18 lt *..v4.18.0-202503040802.p0.g6a5ec2a.assembly.stream.el9
    • Red Hat Quay 3 lt *..v3.13.2-1
    • Red Hat Quay 3 lt *..v3.13.2-2
    • Red Hat Quay 3 lt *..v3.13.2-4
    • Red Hat Quay 3 lt *..v3.13.2-10
    • Red Hat Quay 3 lt *..v3.13.2-11
    Fixed in
    • Buildah 1.38.0
    • Red Hat Enterprise Linux 8 8100020241023085649.afee755d
    • Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support 8060020241028154646.3b538bd8
    • Red Hat Enterprise Linux 8.6 Telecommunications Update Service 8060020241028154646.3b538bd8
    • Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions 8060020241028154646.3b538bd8
    • Red Hat Enterprise Linux 8.8 Extended Update Support 8080020241025064551.0f77c1b7
    • Red Hat Enterprise Linux 9 2:1.33.10-1.el9_4
    • Red Hat Enterprise Linux 9 4:4.9.4-16.el9_4
    • Red Hat Enterprise Linux 9 4:5.2.2-9.el9_5
    • Red Hat Enterprise Linux 9 2:1.37.5-1.el9_5
    • Red Hat Enterprise Linux 9.0 Extended Update Support 1:1.26.8-2.el9_0
    • Red Hat Enterprise Linux 9.0 Extended Update Support 2:4.2.0-5.el9_0.2
    • Red Hat Enterprise Linux 9.2 Extended Update Support 1:1.29.4-1.el9_2
    • Red Hat Enterprise Linux 9.2 Extended Update Support 2:4.4.1-21.el9_2
    • Red Hat OpenShift Container Platform 4.12 v4.12.0-202503181728.p0.ge355452.assembly.stream.el8
    • Red Hat OpenShift Container Platform 4.13 3:4.4.1-15.rhaos4.13.el8
    • Red Hat OpenShift Container Platform 4.13 v4.13.0-202503111300.p0.gb379980.assembly.stream.el8
    • Red Hat OpenShift Container Platform 4.14 3:4.4.1-21.rhaos4.14.el8
    • Red Hat OpenShift Container Platform 4.14 v4.14.0-202503060906.p0.gb03f3f5.assembly.stream.el8
    • Red Hat OpenShift Container Platform 4.15 3:4.4.1-32.rhaos4.15.el8
    • Red Hat OpenShift Container Platform 4.15 v4.15.0-202503060734.p0.gbc0b789.assembly.stream.el8
    • Red Hat OpenShift Container Platform 4.16 4:4.9.4-12.rhaos4.16.el8
    • Red Hat OpenShift Container Platform 4.16 v4.16.0-202503121138.p0.g31c3c26.assembly.stream.el9
    • Red Hat OpenShift Container Platform 4.17 5:5.2.2-1.rhaos4.17.el8
    • Red Hat OpenShift Container Platform 4.17 v4.17.0-202503041005.p0.gc3b0999.assembly.stream.el9
    • Red Hat OpenShift Container Platform 4.18 v4.18.0-202503040802.p0.g6a5ec2a.assembly.stream.el9
    • Red Hat Quay 3 v3.13.2-1
    • Red Hat Quay 3 v3.13.2-2
    • Red Hat Quay 3 v3.13.2-4
    • Red Hat Quay 3 v3.13.2-10
    • Red Hat Quay 3 v3.13.2-11

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    7.8

    Priority

    XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.

    Source: Vendor (CNA), CVSS v3

    7.8

    CVSS v3

    Severity High on the scale from 0 to 10.

    Source: Red Hat, OSV, CVE.org, Msrc Update Guide

    0.4 %

    EPSS score

    Low — model estimates < 1% exploitation likelihood.

    Source: FIRST EPSS, percentile 33.3

    Show all metrics
    Severity
    High
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    54.36 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    no public PoC known
    XIEM Effective CVSS

    XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.

    Read in glossary
    7.8 Methodology
    CVSS v3

    CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.

    Read in glossary
    7.8
    EPSS score

    The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.

    Read in glossary
    0.4 %
    Low — model estimates < 1% exploitation likelihood.
    EPSS percentile

    The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.

    Read in glossary
    33.3
    Elevated — this CVE ranks above at least 10% of all CVEs scored today.
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    —
    Published
    CISA assessment (SSVC)
    Exploitation: none known · not automatable · Technical impact: partial
    Source: CISA Vulnrichment, as of 9 October 2024
    CWE

    CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.

    Read in glossary
    CWE-22

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    High technical severity: assess and remediate the vulnerability in vulnerability handling under Art. 21(2)(e) NIS2 and document the decision.
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    Description

    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.

    Source: redhat_csaf, OSV (Open Source Vulnerabilities), NVD (NIST), CVE.org (MITRE), Microsoft Security Update Guide, cvelistv5

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    —buildah
    • < 1.38.0
    • 1.38.0
    Red HatOpenShift Developer Tools and Services
    • —
    • —
    Red HatRed Hat Enterprise Linux 10
    • —
    • —
    Red HatRed Hat Enterprise Linux 7
    • —
    • —
    Red HatRed Hat Enterprise Linux 8
    • < 8100020241023085649.afee755d
    • 8100020241023085649.afee755d
    Red HatRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
    • < 8060020241028154646.3b538bd8
    • 8060020241028154646.3b538bd8
    Red HatRed Hat Enterprise Linux 8.6 Telecommunications Update Service
    • < 8060020241028154646.3b538bd8
    • 8060020241028154646.3b538bd8
    Red HatRed Hat Enterprise Linux 8.6 Update Services for SAP Solutions
    • < 8060020241028154646.3b538bd8
    • 8060020241028154646.3b538bd8
    Red HatRed Hat Enterprise Linux 8.8 Extended Update Support
    • < 8080020241025064551.0f77c1b7
    • 8080020241025064551.0f77c1b7
    Red HatRed Hat Enterprise Linux 9
    • < 2:1.33.10-1.el9_4
    • < 4:5.2.2-9.el9_5
    • < 2:1.37.5-1.el9_5
    • < 4:4.9.4-16.el9_4
    • 2:1.33.10-1.el9_4
    • 4:5.2.2-9.el9_5
    • 2:1.37.5-1.el9_5
    • 4:4.9.4-16.el9_4
    Red HatRed Hat Enterprise Linux 9.0 Extended Update Support
    • < 2:4.2.0-5.el9_0.2
    • < 1:1.26.8-2.el9_0
    • 2:4.2.0-5.el9_0.2
    • 1:1.26.8-2.el9_0
    Red HatRed Hat Enterprise Linux 9.2 Extended Update Support
    • < 2:4.4.1-21.el9_2
    • < 1:1.29.4-1.el9_2
    • 2:4.4.1-21.el9_2
    • 1:1.29.4-1.el9_2
    Red HatRed Hat OpenShift Container Platform 4
    • —
    • —
    Red HatRed Hat OpenShift Container Platform 4.12
    • < v4.12.0-202503181728.p0.ge355452.assembly.stream.el8
    • v4.12.0-202503181728.p0.ge355452.assembly.stream.el8
    Red HatRed Hat OpenShift Container Platform 4.13
    • < 3:4.4.1-15.rhaos4.13.el8
    • < v4.13.0-202503111300.p0.gb379980.assembly.stream.el8
    • 3:4.4.1-15.rhaos4.13.el8
    • v4.13.0-202503111300.p0.gb379980.assembly.stream.el8
    Red HatRed Hat OpenShift Container Platform 4.14
    • < v4.14.0-202503060906.p0.gb03f3f5.assembly.stream.el8
    • < 3:4.4.1-21.rhaos4.14.el8
    • v4.14.0-202503060906.p0.gb03f3f5.assembly.stream.el8
    • 3:4.4.1-21.rhaos4.14.el8
    Red HatRed Hat OpenShift Container Platform 4.15
    • < v4.15.0-202503060734.p0.gbc0b789.assembly.stream.el8
    • < 3:4.4.1-32.rhaos4.15.el8
    • v4.15.0-202503060734.p0.gbc0b789.assembly.stream.el8
    • 3:4.4.1-32.rhaos4.15.el8
    Red HatRed Hat OpenShift Container Platform 4.16
    • < 4:4.9.4-12.rhaos4.16.el8
    • < v4.16.0-202503121138.p0.g31c3c26.assembly.stream.el9
    • 4:4.9.4-12.rhaos4.16.el8
    • v4.16.0-202503121138.p0.g31c3c26.assembly.stream.el9
    Red HatRed Hat OpenShift Container Platform 4.17
    • < 5:5.2.2-1.rhaos4.17.el8
    • < v4.17.0-202503041005.p0.gc3b0999.assembly.stream.el9
    • 5:5.2.2-1.rhaos4.17.el8
    • v4.17.0-202503041005.p0.gc3b0999.assembly.stream.el9
    Red HatRed Hat OpenShift Container Platform 4.18
    • < v4.18.0-202503040802.p0.g6a5ec2a.assembly.stream.el9
    • v4.18.0-202503040802.p0.g6a5ec2a.assembly.stream.el9
    Red HatRed Hat Quay 3
    • < v3.13.2-1
    • < v3.13.2-2
    • < v3.13.2-10
    • < v3.13.2-4
    • < v3.13.2-11
    • v3.13.2-1
    • v3.13.2-2
    • v3.13.2-10
    • v3.13.2-4
    • v3.13.2-11
    buildah_projectbuildah
    • —
    • —
    redhatopenshift_container_platform
    • 4.13
    • 4.16
    • 4.17
    • 4.14
    • 4.15
    • —
    • —
    • —
    • —
    • —
    gogithub.com/containers/buildah
    • —
    • —

    Vendors and products

    Affected operating systems

    Affected operating systems
    Linuxredhatenterprise_linux8.0
    Linuxredhatenterprise_linux9.0
    Linuxredhatenterprise_linux_eus8.8
    Linuxredhatenterprise_linux_eus9.0
    Linuxredhatenterprise_linux_eus9.2
    Linuxredhatenterprise_linux_eus9.4
    Linuxredhatenterprise_linux_for_arm_648.0_aarch64
    Linuxredhatenterprise_linux_for_arm_649.0_aarch64
    Linuxredhatenterprise_linux_for_arm_64_eus8.8_aarch64
    Linuxredhatenterprise_linux_for_arm_64_eus9.0_aarch64
    Linuxredhatenterprise_linux_for_arm_64_eus9.2_aarch64
    Linuxredhatenterprise_linux_for_arm_64_eus9.4_aarch64
    Linuxredhatenterprise_linux_for_ibm_z_systems8.0_s390x
    Linuxredhatenterprise_linux_for_ibm_z_systems9.0_s390x
    Linuxredhatenterprise_linux_for_ibm_z_systems_eus8.8_s390x
    Linuxredhatenterprise_linux_for_ibm_z_systems_eus9.0_s390x
    Linuxredhatenterprise_linux_for_ibm_z_systems_eus9.2_s390x
    Linuxredhatenterprise_linux_for_ibm_z_systems_eus9.4_s390x
    Linuxredhatenterprise_linux_for_power_little_endian8.0_ppc64le
    Linuxredhatenterprise_linux_for_power_little_endian9.0_ppc64le
    Linuxredhatenterprise_linux_for_power_little_endian_eus8.8_ppc64le
    Linuxredhatenterprise_linux_for_power_little_endian_eus9.0_ppc64le
    Linuxredhatenterprise_linux_for_power_little_endian_eus9.2_ppc64le
    Linuxredhatenterprise_linux_for_power_little_endian_eus9.4_ppc64le

    Weakness classes (CWE)

    • CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

      Base

      The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

      Entry at MITRE CWE-22

    References & sources

    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2024-9675
    <a href="https://intel.neosec.eu/en/cve/CVE-2024-9675"><img src="https://intel.neosec.eu/badge/cve/CVE-2024-9675.svg?lang=en" alt="CVE-2024-9675 – NEOSEC Intel" height="20"></a>