Vulnerabilities in pkg:golang/github.com/containers/buildah
PACKAGECVE-2024-9675 is a MODERATE (CVSS 4.4) buildah allows arbitrary directory mount vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Github.com/containers/buildah libraries in the Go ecosystem. The issue involves buildah allows arbitrary directory mount. Remediation is available by upgrading affected packages to version 1.38.0.
pkg:golang/github.com/containers/buildah
Vulnerability advisories affecting package pkg:golang/github.com/containers/buildah. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-586p-749j-fhwp | CVE-2024-9675 | MODERATE | Buildah allows arbitrary directory mount |
| GHSA-49p4-px3h-rq49 | CVE-2026-44517 | MODERATE | Build breakout using malicious Containerfile and Git Smart HTTP server or GitHub release tar archive |
| GHSA-5vpc-35f4-r8w6 | CVE-2024-11218 | HIGH | Buildah allows build breakout using malicious Containerfiles and concurrent builds |
| GHSA-fhqq-8f65-5xfc | CVE-2024-9407 | MODERATE | Improper Input Validation in Buildah and Podman |
| GHSA-fx8w-mjvm-hvpc | CVE-2020-10696 | HIGH | Path Traversal in Buildah |
| GHSA-pmf3-c36m-g5cf | - | HIGH | Container escape at build time |
| GHSA-7638-r9r3-rmjj | CVE-2021-3602 | MODERATE | Buildah processes using chroot isolation may leak environment values to intermediate processes |
| GHSA-fjm8-m7m6-2fjp | CVE-2022-2990 | HIGH | Buildah's incorrect handling of the supplementary groups may lead to data disclosure, modification |
| GHSA-c3g4-w6cv-6v7h | CVE-2022-27651 | MODERATE | Non-empty default inheritable capabilities for linux container in Buildah |
CVE-2024-9675 at a Glance
Security Impact
CVSS: 4.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2024-9675
To remediate this vulnerability, upgrade all affected Github.com/containers/buildah dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/containers/buildah to 1.38.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/containers/buildah
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-9675, inspect your project dependencies for Github.com/containers/buildah:
inspect dependencies for github.com/containers/buildah
Analyze the terminal output to locate any version of Github.com/containers/buildah in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.38.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where 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. In Github.com/containers/buildah, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-9675 Affected Github.com/containers/buildah Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/containers/buildah
|
Go |
< 1.38.0
|
1.38.0
|
References
Frequently Asked Questions
What is CVE-2024-9675?
Which Github.com/containers/buildah versions are affected?
What version fixes CVE-2024-9675?
Is github.com/containers/buildah affected?
What is the CVSS score of CVE-2024-9675?
What CWE is associated with CVE-2024-9675?
How can I check Go dependencies for CVE-2024-9675?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-586p-749j-fhwp",
"modified" : "2026-08-07T15:32:55Z",
"published" : "2024-10-09T15:32:21Z",
"aliases" : [ "CVE-2024-9675" ],
"summary" : "Buildah allows arbitrary directory mount",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/containers/buildah"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.38.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-9675"
}, {
"type" : "WEB",
"url" : "https://github.com/containers/buildah/commit/aa67e5d71ee7ec07122a210baa3b13966a9e086c"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2024-3186"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/containers/buildah"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2317458"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2024-9675"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:3573"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:3301"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:2710"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:2701"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:2454"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:2449"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:2445"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:9459"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:9454"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:9051"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8994"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8984"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8846"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8709"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8708"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8707"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8703"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8700"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8690"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8686"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8679"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8675"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8563"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHBA-2024:10967"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-09T19:15:02Z",
"nvd_published_at" : "2024-10-09T15:15:17Z"
}
}