kaniko has tar archive path traversal in build context extraction allows writing files outside destination directory
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · Low
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| chainguard-forks | kaniko | 1.25.4 to before 1.25.10 | 1.25.10 | Patch available | CNA |
| — | github.com/chainguard-dev/kaniko (Go) | 1.25.4 to before 1.25.10 | 1.25.10 | Patch available | GHSA-6rxq-q92g-4rmf |
- kaniko Vendorchainguard-forks Affected 1.25.4 to before 1.25.10 Fixed in 1.25.10 Patch available CNA
- github.com/chainguard-dev/kaniko (Go) Vendor— Affected 1.25.4 to before 1.25.10 Fixed in 1.25.10 Patch available GHSA-6rxq-q92g-4rmf
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:chainguard:kaniko:*:*:*:*:*:*:*:* | 1.25.4 to before 1.25.10 | Vulnerable | chainguard-dev |
- cpe:2.3:a:chainguard:kaniko:*:*:*:*:*:*:*:* Versions 1.25.4 to before 1.25.10 Vulnerable ·chainguard-dev
Remediation
- Fix · CNA kaniko (chainguard-forks) Fixed in 1.25.10
- Fix · GHSA-6rxq-q92g-4rmf github.com/chainguard-dev/kaniko (Go) Fixed in 1.25.10 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Serverless | Affected | — |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-28406
- 2026-10-03 Alias added: GHSA-6rxq-q92g-4rmf
References
Patch 3
Sources
- CVE-2026-28406 · CVE Program
- CVE-2026-28406 · NVD
- FIRST EPSS
- GHSA-6rxq-q92g-4rmf · GitHub Advisory Database · CC BY 4.0
- CVE-2026-28406 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences