Buildah: buildah allows arbitrary directory mount (buildah)

CVE-2024-9675
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.39 % · percentile 33 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Modified

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.

Weaknesses (CWE)

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

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hredhat
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · secalert@redhat.com (Secondary)
CVSS 3.1MEDIUM 4.4CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:NNVD · nvd@nist.gov (Primary)

Advisories

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
buildahaffected 0 < 1.38.0
Red Hat · Red Hat Enterprise Linux 8unaffected 8100020241023085649.afee755d < *
Red Hat · Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportunaffected 8060020241028154646.3b538bd8 < *
Red Hat · Red Hat Enterprise Linux 8.6 Telecommunications Update Serviceunaffected 8060020241028154646.3b538bd8 < *
Red Hat · Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsunaffected 8060020241028154646.3b538bd8 < *
Red Hat · Red Hat Enterprise Linux 8.8 Extended Update Supportunaffected 8080020241025064551.0f77c1b7 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 2:1.33.10-1.el9_4 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 4:4.9.4-16.el9_4 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 4:5.2.2-9.el9_5 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 2:1.37.5-1.el9_5 < *
Red Hat · Red Hat Enterprise Linux 9.0 Extended Update Supportunaffected 1:1.26.8-2.el9_0 < *
Red Hat · Red Hat Enterprise Linux 9.0 Extended Update Supportunaffected 2:4.2.0-5.el9_0.2 < *
Red Hat · Red Hat Enterprise Linux 9.2 Extended Update Supportunaffected 1:1.29.4-1.el9_2 < *
Red Hat · Red Hat Enterprise Linux 9.2 Extended Update Supportunaffected 2:4.4.1-21.el9_2 < *
Red Hat · Red Hat OpenShift Container Platform 4.12unaffected v4.12.0-202503181728.p0.ge355452.assembly.stream.el8 < *
Red Hat · Red Hat OpenShift Container Platform 4.13unaffected 3:4.4.1-15.rhaos4.13.el8 < *
Red Hat · Red Hat OpenShift Container Platform 4.13unaffected v4.13.0-202503111300.p0.gb379980.assembly.stream.el8 < *
Red Hat · Red Hat OpenShift Container Platform 4.14unaffected 3:4.4.1-21.rhaos4.14.el8 < *
Red Hat · Red Hat OpenShift Container Platform 4.14unaffected v4.14.0-202503060906.p0.gb03f3f5.assembly.stream.el8 < *
Red Hat · Red Hat OpenShift Container Platform 4.15unaffected 3:4.4.1-32.rhaos4.15.el8 < *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD