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.
Published: 2026-08-21
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Buildah lacks limits on repository paths when fetching source code or archives. A malicious server that delivers a Git repository or a tarball can embed symbolic links that point outside the intended build context. When Buildah copies the content into the build, the missing confinement allows files from outside the context to be read or written, potentially exposing credentials, configuration files, or enabling code execution in the build environment, as reflected by CWE‑22.

Affected Systems

The vulnerability affects Buildah containers:buildah versions 1.38.1 through 1.43.2 and the 1.44.0 release. The issue is resolved in 1.43.2 and 1.44.0. Earlier or later versions are not affected.

Risk and Exploitability

The CVSS score of 6.3 indicates a moderate severity and the EPSS score is not available, suggesting no known exploitation data. However, because the flaw can be triggered by any untrusted source accessed over the network (e.g., a public Git service or an HTTP mirror) and can alter the build context, an attacker can potentially introduce malicious files into the image during normal operation. The risk is therefore significant for environments that pull from untrusted sources, while the likelihood of exploitation depends on user practices rather than a public exploit.

Generated by OpenCVE AI on August 21, 2026 at 21:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Buildah to 1.43.2 or later to apply the fix
  • Audit third‑party Dockerfile and source archives for symlinks that point outside the build context before importing them into Buildah
  • Avoid pulling from untrusted remote repositories or require signed/mirrored sources when constructing images

Generated by OpenCVE AI on August 21, 2026 at 21:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-49p4-px3h-rq49 Build breakout using malicious Containerfile and Git Smart HTTP server or GitHub release tar archive
History

Fri, 21 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
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.
Title Buildah: Build breakout using malicious Containerfile and Git Smart HTTP server or GitHub release tar archive
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-21T20:29:00.354Z

Reserved: 2026-05-06T18:28:20.888Z

Link: CVE-2026-44517

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-21T21:16:59.250

Modified: 2026-08-21T21:16:59.250

Link: CVE-2026-44517

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T21:30:17Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')