---
id: CVE-2026-44517
title: Buildah is a tool that facilitates building OCI images
summary: >-
  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
  downloadToDirector…
severity: medium
cvss: 6.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N'
cwe:
  - CWE-22
vendor: containers
product: github.com/containers/buildah
affected:
  - 'github.com/containers/buildah >= 1.38.1, < 1.43.2'
patched:
  - github.com/containers/buildah 1.43.2
published: '2026-08-21'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T16:10:00.220'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-44517'
references:
  - url: >-
      https://github.com/podman-container-tools/buildah/commit/54459cf8a0feb4b1da766e4a6360451834e1846c
    label: security-advisories@github.com
  - url: >-
      https://github.com/podman-container-tools/buildah/commit/fc2003bb2efeb3ed7d5c7e1e88d04e78f370a944
    label: security-advisories@github.com
  - url: 'https://github.com/podman-container-tools/buildah/releases/tag/v1.43.2'
    label: security-advisories@github.com
  - url: 'https://github.com/podman-container-tools/buildah/releases/tag/v1.44.0'
    label: security-advisories@github.com
  - url: >-
      https://github.com/podman-container-tools/buildah/security/advisories/GHSA-49p4-px3h-rq49
    label: security-advisories@github.com
  - url: >-
      https://github.com/containers/buildah/security/advisories/GHSA-49p4-px3h-rq49
  - url: 'https://github.com/advisories/GHSA-49p4-px3h-rq49'
tags:
  - nvd
  - ghsa
  - go
epss: 0.00184
epssPercentile: 0.07889
ecosystem: go
ingestedAt: '2026-06-29T13:24:35.514Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-44517)

Affected packages:

- `github.com/containers/buildah >= 1.38.1, < 1.43.2`

Patched in:

- `github.com/containers/buildah 1.43.2`

Source: https://github.com/advisories/GHSA-49p4-px3h-rq49
