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
- Buildah
- 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
- Buildah
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 versions | Fixed in | ||
|---|---|---|---|
| — | buildah |
|
|
| Red Hat | OpenShift Developer Tools and Services |
|
|
| Red Hat | Red Hat Enterprise Linux 10 |
|
|
| Red Hat | Red Hat Enterprise Linux 7 |
|
|
| 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 |
|
|
| 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 |
|
|
| buildah_project | buildah |
|
|
| redhat | openshift_container_platform |
|
|
| go | github.com/containers/buildah |
|
|
Vendors and products
- Buildah Project buildah Project buildah
- Go Github.com/containers/buildah
- Red Hat Openshift Developer Tools And Services
- Red Hat Red Hat Enterprise Linux 10
- Red Hat Red Hat Enterprise Linux 7
- 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
Affected operating systems
| Linux | redhat | enterprise_linux | 8.0 |
| Linux | redhat | enterprise_linux | 9.0 |
| Linux | redhat | enterprise_linux_eus | 8.8 |
| Linux | redhat | enterprise_linux_eus | 9.0 |
| Linux | redhat | enterprise_linux_eus | 9.2 |
| Linux | redhat | enterprise_linux_eus | 9.4 |
| Linux | redhat | enterprise_linux_for_arm_64 | 8.0_aarch64 |
| Linux | redhat | enterprise_linux_for_arm_64 | 9.0_aarch64 |
| Linux | redhat | enterprise_linux_for_arm_64_eus | 8.8_aarch64 |
| Linux | redhat | enterprise_linux_for_arm_64_eus | 9.0_aarch64 |
| Linux | redhat | enterprise_linux_for_arm_64_eus | 9.2_aarch64 |
| Linux | redhat | enterprise_linux_for_arm_64_eus | 9.4_aarch64 |
| Linux | redhat | enterprise_linux_for_ibm_z_systems | 8.0_s390x |
| Linux | redhat | enterprise_linux_for_ibm_z_systems | 9.0_s390x |
| Linux | redhat | enterprise_linux_for_ibm_z_systems_eus | 8.8_s390x |
| Linux | redhat | enterprise_linux_for_ibm_z_systems_eus | 9.0_s390x |
| Linux | redhat | enterprise_linux_for_ibm_z_systems_eus | 9.2_s390x |
| Linux | redhat | enterprise_linux_for_ibm_z_systems_eus | 9.4_s390x |
| Linux | redhat | enterprise_linux_for_power_little_endian | 8.0_ppc64le |
| Linux | redhat | enterprise_linux_for_power_little_endian | 9.0_ppc64le |
| Linux | redhat | enterprise_linux_for_power_little_endian_eus | 8.8_ppc64le |
| Linux | redhat | enterprise_linux_for_power_little_endian_eus | 9.0_ppc64le |
| Linux | redhat | enterprise_linux_for_power_little_endian_eus | 9.2_ppc64le |
| Linux | redhat | enterprise_linux_for_power_little_endian_eus | 9.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
- GitHub Security Advisoriesadvisories/GHSA-586p-749j-fhwpadvisory
- github.comcontainers/buildah/commit/aa67e5d71ee7ec07122a210baa3b13966a9e0…fix
- access.redhat.comRHBA-2024:10967Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:8563Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:8675Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:8679Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:8686Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:8690Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:8700Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:8703Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:8707Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:8708Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:8709Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:8846Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:8984Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:8994Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:9051Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:9454Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2024:9459Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2025:2445Vendor advisory, x_refsource_REDHAT
Embed badge
Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.
<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>