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

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: 2026-02-27 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2026-28406 is rated Moderate Risk (48/100): CVSS High severity, with low exploitation likelihood (EPSS 0.56%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2026-28406

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.07% 0.56% +0.49%
2 2026-04-21 0.25% 0.07% -0.18%
3 2026-03-31 0.25%

Full EPSS history (5 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2026-28406

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.2 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:L)
Might cause slowdowns, glitches, or partial disruption—not a full brick.
3.9 4.2 [email protected]

Weakness enumeration for CVE-2026-28406

GitHub Security Advisory for CVE-2026-28406

GHSA-6rxq-q92g-4rmf · Severity: high · Ecosystem: go — kaniko has tar archive path traversal in its build context extraction, allowing file writes outside destination directories

OS Trackers for CVE-2026-28406

vendor priority summary link
redhat high https://access.redhat.com/security/cve/CVE-2026-28406

Affected software / configurations for CVE-2026-28406

Vendor Product Version Raw CPE
chainguard kaniko >= 1.25.4, < 1.25.10 cpe:2.3:a:chainguard:kaniko:*:*:*:*:*:*:*:*

References for CVE-2026-28406

cvelogic Threat Intelligence