Skip to main content
← All vulnerabilities
CVE-2026-28406GO-2026-4580GHSA-6RXQ-Q92G-4RMF

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.25.10
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • chainguard-forks kaniko

    From 1.25.4 · fixed in 1.25.10

  • github.com/chainguard-dev/kanikoGo

    From 1.25.4 · fixed in 1.25.10

References 3

GitHub · chainguard-forks/kaniko