GitHub Advisoryadvisory · Go

GHSA-586p-749j-fhwp Buildah allows arbitrary directory mount

MEDIUM Published 2024-10-09 Modified 2026-10-30 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