# CVE-2026-28406: kaniko has tar archive path traversal in build context extraction allows writing files outside destination directory

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Published: 2026-02-27T21:20:52.764Z
- Modified: 2026-07-15T02:19:14.720Z
- Also known as: GHSA-6rxq-q92g-4rmf, GO-2026-4580
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- chainguard-forks kaniko: >= 1.25.4, < 1.25.10
- openshift-serverless-1/kn-client-kn-rhel9: no versions given
- openshift-serverless-1/kn-plugin-func-func-util-rhel9: no versions given
- openshift-serverless-clients: no versions given
- github.com/chainguard-dev/kaniko (Go): from 1.25.4 before 1.25.10
- chainguard kaniko: from 1.25.4 before 1.25.10

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L`
- redhat-SADP: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:L`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L`

## References

- <https://github.com/chainguard-forks/kaniko/security/advisories/GHSA-6rxq-q92g-4rmf> (advisory, patch, vendor-advisory, web)
- <https://github.com/chainguard-forks/kaniko/pull/326> (issue-tracking, patch, web)
- <https://github.com/chainguard-forks/kaniko/commit/a370e4b1f66e6e842b685c8f70ed507964c4b221> (patch, web)
- <https://access.redhat.com/security/cve/CVE-2026-28406> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2443462> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-28406.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-28406> (advisory)
- <https://github.com/chainguard-forks/kaniko> (package)
- <https://github.com/chainguard-forks/kaniko/releases/tag/v1.25.10> (web)

## Sources

- CVE List: [CVE-2026-28406](https://www.cve.org/CVERecord?id=CVE-2026-28406), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-6rxq-q92g-4rmf](https://github.com/advisories/GHSA-6rxq-q92g-4rmf), CC-BY-4.0, modified 2026-03-23
- Go Vulnerability Database: [GO-2026-4580](https://pkg.go.dev/vuln/GO-2026-4580), CC-BY-4.0, modified 2026-03-23
- NVD: [CVE-2026-28406](https://nvd.nist.gov/vuln/detail/CVE-2026-28406), Public domain, modified 2026-07-15

---

Page: https://cve.day/CVE-2026-28406 · Whole record: https://cve.day/CVE-2026-28406.json · Rebuilt by cve.day 2026-11-25T22:59:15.049Z
