CVE-2026-28406

kaniko has tar archive path traversal in build context extraction allows writing files outside destination directory

HIGH
8.2
CVSS Score
Published: February 27, 2026 at 09:20 PM UTC
Updated: July 15, 2026 at 02:19 AM UTC
2 products affected across 2 vendorsKanikoKaniko

Using kaniko by chainguard-forks?

Get instant alerts when new vulnerabilities affect kaniko - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.2
Exploit prediction
EPSS 0.7%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

1.25.4 ≤ v < 1.25.10
Affected range stops below 1.25.10, so it looks safe — our inference, not a vendor statement
v < 1.25.10
Affected range stops below 1.25.10, so it looks safe — our inference, not a vendor statement

References (6)

x_refsource_CONFIRMPatchVendor Advisory
Source: cverecord
https://github.com/chainguard-forks/kaniko/security/advisories/GHSA-6rxq-q92g-4rmf
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/chainguard-forks/kaniko/pull/326
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://access.redhat.com/security/cve/CVE-2026-28406
Source: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
https://bugzilla.redhat.com/show_bug.cgi?id=2443462

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.2HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
LOW
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card