CVE-2026-28406
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.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-03-02 |
Timeline
- 2026-02-27Published by the CNA21:20 UTC
- 2026-03-01GitHub advisory published (GHSA-6rxq-q92g-4rmf)2 days after publication
- 2026-03-02CISA SSVC decision recorded3 days after publication
Exploit and advisory records
GitHub advisory GHSA-6rxq-q92g-4rmf, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/chainguard-dev/kaniko | from 1.25.4 before 1.25.10 | 1.25.10 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| chainguard kaniko | from 1.25.4 before 1.25.10fixed in 1.25.10 | 1.25.10 |
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
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-28406.json
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-28406'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-28406'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-28406'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-28406'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).