Hard-coded CredentialsWeakness · CWE-798

CVE-2025-7342

HIGH · 7.5 CVSS v3.1 Published 2025-08-17
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
82/100
Remediation priority · High
Remotely reachable No privileges

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Kubernetes Image Builder leaves default root credentials enabled during Windows VM image builds when using Nutanix or VMware OVA providers. An attacker with access to the build VM during the image creation process can exploit these enabled credentials to gain root access and modify the image. The credentials are properly disabled when the build completes, so only images built while under active compromise are affected.

MitigationOrganizations should audit their VM image provenance to determine if Windows node images were built with Image Builder using affected providers during an active build compromise, and rebuild affected images using a patched Image Builder version with verified clean build environments.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify if Kubernetes Image Builder is in use
    Search for image-builder project files, such as packer templates, ansible playbooks from the image-builder repository, or CI/CD pipelines referencing image-builder components. Check for /home/*/image-builder/ or similar installation directories on build runners.
    Affected if Image Builder is actively used or was previously used in the environment.
  2. Determine the configured providers
    Review Image Builder configuration files (e.g., packer/*.pkr.hcl, conf/*.yaml, or cloud-init configs) for provider definitions. Look specifically for 'nutanix' or 'vmware-iso'/'vmware-ova' entries in the provider list.
    Affected if Nutanix or VMware OVA providers are configured for image builds.
  3. Confirm Windows image builds
    Inspect the build configuration or CI/CD job history to identify if Windows-based node images were being built. Look for variables such as 'os_type=windows', 'iso_path' pointing to Windows ISOs, or packer builder names containing 'windows'.
    Affected if Windows node images were being built with Image Builder using affected providers.
  4. Assess build environment integrity
    Review build runner logs, SSH access logs, and audit trails for the build VMs during the time window when Windows images were being constructed. Look for unexpected login events, unfamiliar processes, or indicators of compromise on the build infrastructure.
    Affected if The build VM was potentially compromised or accessed by unauthorized parties during active Windows image construction.

You are affected if Kubernetes Image Builder was used to build Windows images with Nutanix or VMware OVA providers while the build environment was potentially compromised, as only images built under active compromise retain the enabled root credentials.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Organizations should audit their VM image provenance to determine if Windows node images were built with Image Builder using affected providers during an active build compromise, and rebuild affected images using a patched Image Builder version with verified clean build environments.

Recommended fix Moderate confidence

Latest stable Kubernetes Image Builder release containing the CVE-2025-7342 fix

  1. Upgrade Kubernetes Image Builder to the latest stable release that addresses CVE-2025-7342
  2. Verify that the fixed version disables default credentials immediately upon initialization rather than at build completion
  3. If using Nutanix or VMware OVA providers for Windows images, ensure all newly created images use the patched Image Builder version
  4. Audit existing deployed images created during the vulnerable build window: if the build VM was accessed by untrusted parties during build, consider recreating those node images
  5. Implement build environment access controls: restrict access to the build VM during image creation to trusted personnel only
  6. Verify the image build process completes without any unauthorized modifications
Caveat Review release notes for any changes to Windows image build workflow when upgrading Image Builder

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing4.0 h
  • Review / QA2.0 h
18.0 hours of engineering $3,200
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,120.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-7342 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-7342 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data