CVE-2026-28406
published high CVSS 3.1 · 8.2kaniko has tar archive path traversal in build context extraction allows writing files outside destination directory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| chainguard-forks | — | kaniko>= 1.25.4, < 1.25.10 | Affected | Not stated | GitHub_M |
| Red Hat | — | openshift-serverless-1/kn-client-kn-rhel9OpenShift Serverless | Unknown | Not stated | redhat-SADP |
| Red Hat | — | openshift-serverless-1/kn-plugin-func-func-util-rhel9OpenShift Serverless | Unknown | Not stated | redhat-SADP |
| Red Hat | — | openshift-serverless-clientsOpenShift Serverless | Unknown | Not stated | redhat-SADP |
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.
A flaw was found in kaniko, a tool used to build container images. A remote attacker can exploit this vulnerability by providing a specially crafted build context archive that contains path traversal sequences. This allows files to be written outside the intended destination directory during archive unpacking. When chained with docker credential helpers in environments with registry authentication, this can lead to arbitrary code execution within the executor process.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.5 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:L | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| chainguard-forks | kaniko | >= 1.25.4, < 1.25.10 (affected) | GitHub_M · cna |
| Red Hat | OpenShift Serverless | Default: unknown | redhat-SADP · adp |
| Red Hat | OpenShift Serverless | Default: unknown | redhat-SADP · adp |
| Red Hat | OpenShift Serverless | Default: unknown | redhat-SADP · adp |
Weaknesses
2- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
6- https://access.redhat.com/security/cve/CVE-2026-28406
- RHBZ#2443462 https://bugzilla.redhat.com/show_bug.cgi?id=2443462
- 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://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-28406.json
Provider assertions
3GitHub_M · cna
kaniko has tar archive path traversal in build context extraction allows writing files outside destination directory
redhat-SADP · adp
kaniko: kaniko: Arbitrary code execution via path traversal in build context archive unpacking
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 947e94883d9128b4d8139ea57e2b1901709f72c4b4f069fd68fd2e611e0b59e6
- Ingested
- 23 Sep 2026, 09:08:14 UTC
- Source record
- Official CVE record