CVE-2026-28406
HIGH 8.2CVSS 3.1kaniko has tar archive path traversal in its build context extraction, allowing file writes outside destination directories
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.
- Published
- 27 Feb 2026
- Last modified
- 15 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-6rxq-q92g-4rmfGO-2026-4580
- Sources
- NVDJSONOSV GHSA-6rxq-q92g-4rmfJSONOSV GO-2026-4580JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:L |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | chainguard | kanikocpe:2.3:a:chainguard:kaniko:*:*:*:*:*:*:*:* |
>= 1.25.4, < 1.25.10 | 1.25.10 |
| OSV | Go | github.com/chainguard-dev/kaniko | >= 1.25.4, < 1.25.10 | 1.25.10 |
References
- https://github.com/chainguard-forks/kaniko/commit/a370e4b1f66e6e842b685c8f70ed507964c4b221 · Patch, WEB
- https://github.com/chainguard-forks/kaniko/pull/326 · Issue Tracking, Patch, WEB
- https://github.com/chainguard-forks/kaniko/security/advisories/GHSA-6rxq-q92g-4rmf · Patch, Vendor Advisory, WEB, ADVISORY
- https://access.redhat.com/security/cve/CVE-2026-28406
- https://bugzilla.redhat.com/show_bug.cgi?id=2443462
- 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
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 27 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Mar 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Mar 2026)