Description
Buildah is a tool that facilitates building OCI images. From 1.38.1 until 1.43.2 and 1.44.0, TempDirForURL in define/types.go does not securely confine Git repository subdirectories to the downloaded build context, and downloadToDirectory and stdinToDirectory can follow a Dockerfile symlink left by a partially extracted tar archive. A malicious server supplying a Git repository or tar archive can cause files outside the build context directory to be included in the context or copied into the build. This issue is fixed in versions 1.43.2 and 1.44.0.
References5
- github.com/podman-container-tools/buildah/commit/54459cf8a0feb4…
- github.com/podman-container-tools/buildah/commit/fc2003bb2efeb3…
- github.com/podman-container-tools/buildah/releases/tag/v1.43.2
- github.com/podman-container-tools/buildah/releases/tag/v1.44.0
- github.com/podman-container-tools/buildah/security/advisories/G…
Metrics
- CVSS 3.1
-
6.3
MEDIUM
Score source: CNA
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N - EPSS — exploit probability
- 0% percentile: 8 · as of 9 November 2026
- CWE
- CWE-22
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.