Security mailing lists by PureSourceCode

CVE-2026-28406

HIGH 8.2CVSS 3.1

kaniko has tar archive path traversal in its build context extraction, allowing file writes outside destination directories

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
27 Feb 2026
Last modified
15 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-22
Also known as
GHSA-6rxq-q92g-4rmfGO-2026-4580
Sources
NVDJSONOSV GHSA-6rxq-q92g-4rmfJSONOSV GO-2026-4580JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) CVSS 3.1 HIGH 8.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:L
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
OSV GitHub CVSS 3.1 HIGH 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD chainguard kaniko
cpe:2.3:a:chainguard:kaniko:*:*:*:*:*:*:*:*
>= 1.25.4, < 1.25.10 1.25.10
OSV Go github.com/chainguard-dev/kaniko >= 1.25.4, < 1.25.10 1.25.10

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 27 Feb 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Mar 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Mar 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.