Back to Checks
ESXi hosts have no pending upgrades
upgradables_hosts_up_to_date
Service: upgradablesSeverity: medium
Categories:vulnerabilities
Resource Type:Upgradable
ESXi host software is up to date with no pending upgrades available through VCF lifecycle management.
Risk
Hosts with pending upgrades may be missing security patches for hypervisor vulnerabilities that compromise workload isolation, breaking integrity between tenant workloads on the same host.
Run this check with Prowler
Run in Prowler CloudInstall
pip install --extra-index-url https://__token__:${PROWLER_REGISTRY_DOWNLOAD_API_KEY}@registry.prowler.com/simple/ "prowler-provider-vcf[runtime]"Run
prowler vcf --checks upgradables_hosts_up_to_dateRecommendation
Apply pending ESXi host upgrades promptly so hypervisor vulnerabilities are remediated before they can be exploited to break workload isolation.
Remediation
Other
1Apply host upgrades via the **SDDC Manager** UI under **Administration > Lifecycle Management**.
Check Code
from prowler.lib.check.models import Check
from prowler_provider_vcf.check_report import CheckReportVCF
from prowler_provider_vcf.services.upgradables.upgradables_client import (
upgradables_client,
)
class upgradables_hosts_up_to_date(Check):
def execute(self) -> list[CheckReportVCF]:
findings = []
host_upgradables = [
u
for u in upgradables_client.upgradables
if u.is_host_component and u.is_pending
]
report = CheckReportVCF(
metadata=self.metadata(),
resource=upgradables_client.host_upgrades_resource,
)
if not host_upgradables:
report.status = "PASS"
report.status_extended = (
"All ESXi hosts are up to date with no pending upgrades."
)
else:
names = ", ".join(u.name for u in host_upgradables)
report.status = "FAIL"
report.status_extended = (
f"{len(host_upgradables)} host(s) have pending upgrades: {names}."
)
findings.append(report)
return findings