Back to Checks
vcf

ESXi host versions are consistent

hosts_version_consistent
Service: hostsSeverity: medium
OfficialVerifiedVMware Cloud FoundationPrivate
Categories:vulnerabilities
Resource Type:Host

ESXi hosts run the same version, indicating upgrades and patches have been applied consistently across the fleet.

Risk

Version inconsistency across hosts can cause vMotion failures, feature incompatibilities, and security gaps from unpatched systems — undermining both availability and integrity of the compute layer.

Run this check with Prowler

Run in Prowler Cloud
Install
pip install --extra-index-url https://__token__:${PROWLER_REGISTRY_DOWNLOAD_API_KEY}@registry.prowler.com/simple/ "prowler-provider-vcf[runtime]"
Run
prowler vcf --checks hosts_version_consistent

Recommendation

Keep ESXi hosts on a consistent version through SDDC Manager lifecycle management so upgrades reach every host together.

Remediation

Other

1Update outlier hosts to the majority version using the **SDDC Manager** lifecycle management or **vSphere Update Manager**.

Check Code

from collections import Counter

from prowler.lib.check.models import Check
from prowler_provider_vcf.check_report import CheckReportVCF
from prowler_provider_vcf.services.hosts.hosts_client import hosts_client


class hosts_version_consistent(Check):
    def execute(self) -> list[CheckReportVCF]:
        findings = []
        if not hosts_client.hosts:
            return findings

        # Determine the majority version
        version_counts = Counter(h.version for h in hosts_client.hosts if h.version)
        if not version_counts:
            return findings
        majority_version = version_counts.most_common(1)[0][0]

        for host in hosts_client.hosts:
            report = CheckReportVCF(
                metadata=self.metadata(),
                resource=host,
            )
            if not host.version:
                report.status = "FAIL"
                report.status_extended = f"Host {host.name} has no version information."
            elif host.version == majority_version:
                report.status = "PASS"
                report.status_extended = (
                    f"Host {host.name} is running version {host.version} "
                    f"(consistent with majority)."
                )
            else:
                report.status = "FAIL"
                report.status_extended = (
                    f"Host {host.name} is running version {host.version} "
                    f"(majority version: {majority_version})."
                )
            findings.append(report)
        return findings