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.
References (3)
Core 3
Core References
Vendor Advisory x_refsource_confirm
https://github.com/chainguard-forks/kaniko/security/advisories/GHSA-6rxq-q92g-4rmf
Issue Tracking x_refsource_misc
https://github.com/chainguard-forks/kaniko/pull/326
Scores
CVSS v3
8.2
EPSS
0.0008
EPSS Percentile
22.4%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-22
Status
published
Products (2)
chainguard/kaniko
1.25.4 - 1.25.10
chainguard-dev/kaniko
1.25.4 - 1.25.10Go
Published
Feb 27, 2026
Tracked Since
Feb 28, 2026