{"cve":"CVE-2026-28406","nvd":{"published":"2026-02-27T22:16:23.513","modified":"2026-07-15T02:19:14.720","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":8.2},"cwes":["CWE-22"],"references":["https://github.com/chainguard-forks/kaniko/commit/a370e4b1f66e6e842b685c8f70ed507964c4b221","https://github.com/chainguard-forks/kaniko/pull/326","https://github.com/chainguard-forks/kaniko/security/advisories/GHSA-6rxq-q92g-4rmf","https://access.redhat.com/security/cve/CVE-2026-28406","https://bugzilla.redhat.com/show_bug.cgi?id=2443462"],"products":["chainguard:kaniko"],"source":"nvd","synced_at":"2026-10-19T22:24:17.937441719+00:00"},"epss":{"cve":"CVE-2026-28406","score":0.00676,"percentile":0.52251,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6rxq-q92g-4rmf","url":"https://osv.dev/vulnerability/GHSA-6rxq-q92g-4rmf","summary":"kaniko has tar archive path traversal in its build context extraction, allowing file writes outside destination directories","modified":"2026-03-23T04:56:13.753358299Z","packages":[{"ecosystem":"Go","name":"github.com/chainguard-dev/kaniko","purl":"pkg:golang/github.com/chainguard-dev/kaniko","ranges":[">=1.25.4 <1.25.10"],"fixed":["1.25.10"]}]},{"id":"GO-2026-4580","url":"https://osv.dev/vulnerability/GO-2026-4580","summary":"kaniko has tar archive path traversal in its build context extraction, allowing file writes outside destination directories in github.com/chainguard-dev/kaniko","modified":"2026-03-23T04:52:46.798505Z","packages":[{"ecosystem":"Go","name":"github.com/chainguard-dev/kaniko","purl":"pkg:golang/github.com/chainguard-dev/kaniko","ranges":[">=1.25.4 <1.25.10"],"fixed":["1.25.10"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}