Repository navigation
committee/security-responseDenotes an issue or PR intended to be handled by the product security committee.Denotes an issue or PR intended to be handled by the product security committee.
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
official-cve-feedIssues or PRs related to CVEs officially announced by Security Response Committee (SRC)Issues or PRs related to CVEs officially announced by Security Response Committee (SRC)
sig/cluster-lifecycleCategorizes an issue or PR as relevant to SIG Cluster Lifecycle.Categorizes an issue or PR as relevant to SIG Cluster Lifecycle.
triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Description
CVSS Rating High 7.5: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
A security issue was discovered in the Kubernetes Image Builder where default credentials are enabled during the Windows image build process when using the Nutanix or VMware OVA providers. These credentials, which allow root access, are disabled at the conclusion of the build. Kubernetes clusters are only affected if their nodes use VM images created via the Image Builder project and the vulnerability was exploited during the build process, which requires an attacker to access the build VM and modify the image while the build is in progress.
Am I vulnerable?
Clusters using virtual machine Windows images built with Kubernetes Image Builder (https://github.com/kubernetes-sigs/image-builder) version v0.1.44 or earlier are affected if built with the Nutanix or OVA provider.
VMs using images built with all other providers are not affected by this issue.
To determine the version of Image Builder you are using, use one of the following methods:
- For git clones of the image builder repository:
cd <local path to image builder repo>
make version
- For installations using a tarball download:
cd <local path to install location>
grep -o v0\\.[0-9.]* RELEASE.md | head -1
- For a container image release:
docker run --rm <image pull spec> version
or
podman run --rm <image pull spec> version
or look at the image tag specified, in the case of an official image such asregistry.k8s.io/scl-image-builder/cluster-node-image-builder-amd64:v0.1.44
Affected Versions
- Kubernetes Image Builder versions \<= v0.1.44
How do I mitigate this vulnerability?
Rebuild any affected images using a fixed version of Image Builder. Fixed in Kubernetes Image Builder release v0.1.45
Re-deploy the fixed images to any affected VMs or use image-builder v0.1.41 (February 2025) or later, and set the admin_password JSON variable.
Prior to upgrading, this vulnerability can be mitigated by changing the password of the Administrator account on affected VMs:
net user Administrator <new-password>
Fixed Versions
Fixed in Kubernetes Image Builder release v0.1.45 kubernetes-sigs/image-builder#1800
Detection
Get-LocalUser -Name Administrator | Select-Object Name,Enabled,SID,Lastlogon | Format-List
If you find evidence that this vulnerability has been exploited, please contact security@kubernetes.io
Additional Details
The fixed version requires users to specify a password in the WINDOWS_ADMIN_PASSWORD environment variable or in the admin_password JSON variable. If both are empty, then the image builder would not build the image and return an error.
Acknowledgements
This vulnerability was reported by Abdel Adim Oisfi, Davide Silvetti, Nicolò Daprelà, Paolo Cavaglià, Pietro Tirenna from Shielder.
The issue was fixed and coordinated by Matt Boersma of the Image Builder project.
/area security
/kind bug
/committee security-response
/label official-cve-feed
/sig cluster-lifecycle
Activity
- k8s-ci-robotadded needs-sigIndicates an issue or PR lacks a `sig/foo` label and requires one.Indicates an issue or PR lacks a `sig/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.on Jul 21, 2025
- ritazhchanged the title ~~[-][placeholder][/-]~~ [+]CVE-2025-7342: VM images built with Kubernetes Image Builder Nutanix or OVA providers use default credentials for Windows images if user did not override[/+] on Jul 21, 2025
-
ritazh commentedon Jul 21, 2025 MemberAuthorMore actions /area security
/kind bug
/committee security-response
/label official-cve-feed
/sig cluster-lifecycle
/triage accepted - k8s-ci-robotadded kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.committee/security-responseDenotes an issue or PR intended to be handled by the product security committee.Denotes an issue or PR intended to be handled by the product security committee.sig/cluster-lifecycleCategorizes an issue or PR as relevant to SIG Cluster Lifecycle.Categorizes an issue or PR as relevant to SIG Cluster Lifecycle.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.official-cve-feedIssues or PRs related to CVEs officially announced by Security Response Committee (SRC)Issues or PRs related to CVEs officially announced by Security Response Committee (SRC) and removed needs-sigIndicates an issue or PR lacks a `sig/foo` label and requires one.Indicates an issue or PR lacks a `sig/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.on Jul 21, 2025
-
ritazh commentedon Jul 21, 2025 MemberAuthorMore actions Fixed by: kubernetes-sigs/image-builder#1800
- ritazhclosed this as completedon Aug 19, 2025
Metadata
Metadata
Assignees
Labels
committee/security-responseDenotes an issue or PR intended to be handled by the product security committee.Denotes an issue or PR intended to be handled by the product security committee.
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
official-cve-feedIssues or PRs related to CVEs officially announced by Security Response Committee (SRC)Issues or PRs related to CVEs officially announced by Security Response Committee (SRC)
sig/cluster-lifecycleCategorizes an issue or PR as relevant to SIG Cluster Lifecycle.Categorizes an issue or PR as relevant to SIG Cluster Lifecycle.
triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.