Skip to content
OpenAdvisories
High · 8.2 CVE-2026-28406 EUVD-2026-9077GHSA-6rxq-q92g-4rmfGO-2026-4580

kaniko has tar archive path traversal in build context extraction allows writing files outside destination directory

Published Feb 27, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

Description

kaniko is a tool to build container images from a Dockerfile, inside a container or Kubernetes cluster. Starting in version 1.25.4 and prior to version 1.25.10, kaniko unpacks build context archives using `filepath.Join(dest, cleanedName)` without enforcing that the final path stays within `dest`. A tar entry like `../outside.txt` escapes the extraction root and writes files outside the destination directory. In environments with registry authentication, this can be chained with docker credential helpers to achieve code execution within the executor process. Version 1.25.10 uses securejoin for path resolution in tar extraction.

Affected products

VendorProductAffectedFixed
chainguard-forks kaniko >= 1.25.4, < 1.25.10 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20260317T205859-150000.1.152.1 SUSE-SU-2026:1042-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/chainguard-dev/kaniko >= 1.25.4, < 1.25.10 1.25.10 GHSA-6rxq-q92g-4rmf

Advisories 2

References