GitHub Advisoryadvisory · Go
GHSA-586p-749j-fhwp Buildah allows arbitrary directory mount
MEDIUM
Official page ↗
- Aliases
- CVE-2024-9675
- Ecosystem
- Go
- Packages
- github.com/containers/buildah
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2024-10-09
Affected packages
• Go github.com/containers/buildah: < 1.38.0 → fixed in 1.38.0
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.
Related
Alias · CVE (1)
- CVE-2024-9675 A vulnerability was found in Buildah. vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-9675 advisory
- https://github.com/containers/buildah/commit/aa67e5d71ee7ec07122a210baa3b13966a9e086c web
- https://pkg.go.dev/vuln/GO-2024-3186 web
- https://github.com/containers/buildah package
- https://bugzilla.redhat.com/show_bug.cgi?id=2317458 web
- https://access.redhat.com/security/cve/CVE-2024-9675 web
- https://access.redhat.com/errata/RHSA-2025:3573 web
- https://access.redhat.com/errata/RHSA-2025:3301 web
- https://access.redhat.com/errata/RHSA-2025:2710 web
- https://access.redhat.com/errata/RHSA-2025:2701 web
- https://access.redhat.com/errata/RHSA-2025:2454 web
- https://access.redhat.com/errata/RHSA-2025:2449 web
- https://access.redhat.com/errata/RHSA-2025:2445 web
- https://access.redhat.com/errata/RHSA-2024:9459 web
- https://access.redhat.com/errata/RHSA-2024:9454 web
- https://access.redhat.com/errata/RHSA-2024:9051 web
- https://access.redhat.com/errata/RHSA-2024:8994 web
- https://access.redhat.com/errata/RHSA-2024:8984 web
- https://access.redhat.com/errata/RHSA-2024:8846 web
- https://access.redhat.com/errata/RHSA-2024:8709 web
- https://access.redhat.com/errata/RHSA-2024:8708 web
- https://access.redhat.com/errata/RHSA-2024:8707 web
- https://access.redhat.com/errata/RHSA-2024:8703 web
- https://access.redhat.com/errata/RHSA-2024:8700 web
- https://access.redhat.com/errata/RHSA-2024:8690 web
- https://access.redhat.com/errata/RHSA-2024:8686 web
- https://access.redhat.com/errata/RHSA-2024:8679 web
- https://access.redhat.com/errata/RHSA-2024:8675 web
- https://access.redhat.com/errata/RHSA-2024:8563 web
- https://access.redhat.com/errata/RHEA-2024:6126 web
- https://access.redhat.com/errata/RHBA-2024:10967 web