Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
Due to multiple time-of-check time-of-use race conditions in the resource count check and increment logic, as well as missing validations, users of the platform are able to exceed the allocation limits configured for their accounts/domains. This can be used by an attacker to degrade the infrastructure's resources and lead to denial of service conditions.
Users are recommended to upgrade to Apache CloudStack versions 4.20.3.0 or 4.22.0.1, or later, which fixes this issue.
AnalysisAI
Apache CloudStack fails to properly validate resource allocation limits due to time-of-check time-of-use race conditions and missing validations, allowing authenticated users to exceed configured account and domain resource quotas and trigger denial of service conditions. Authenticated network attackers can exploit this vulnerability without user interaction to exhaust infrastructure resources. Affected versions prior to 4.20.3.0 and 4.22.0.1 require immediate patching.
Technical ContextAI
Apache CloudStack is an open-source Infrastructure-as-a-Service (IaaS) platform that manages virtualized computing resources through multi-tenant account and domain hierarchies. The vulnerability exists in the resource counting and allocation enforcement logic, specifically in functions that check whether a user's resource consumption is within configured limits before incrementing usage counters. CWE-367 (Time-of-check Time-of-use Race Condition) occurs because the check operation and the increment operation are not atomic: between verification that a resource limit has not been exceeded and the actual increment of the counter, a race condition allows multiple concurrent requests to each pass the check independently, then all increment the counter, collectively exceeding the quota. Additionally, missing input validations compound this issue. CloudStack's multi-tenant architecture means that compromised or malicious users within a domain can launch resource exhaustion attacks affecting the shared infrastructure and other tenants' services.
RemediationAI
Upgrade Apache CloudStack to version 4.20.3.0 or later (if on 4.20.x branch) or 4.22.0.1 or later (if on 4.22.x branch) immediately. These patched versions incorporate atomic checks and increments for resource allocation and add missing validations to prevent quota bypass. If immediate patching is not feasible, implement compensating controls: (1) Reduce or disable concurrent API request handling for resource-allocation endpoints by enforcing per-user request serialization at the load balancer or API gateway level - this mitigates the race condition by eliminating concurrency but may reduce platform throughput; (2) Lower configured resource allocation limits to a safety margin below actual infrastructure capacity to provide buffer against quota overages; (3) Restrict API access to trusted administrative users only and revoke API tokens for non-administrative users temporarily - this eliminates attack surface at the cost of reduced multi-tenant functionality; (4) Enable detailed audit logging and alerting on resource allocation API calls to detect quota violations in real-time, allowing reactive mitigation before DoS impact. For patching details and download links, refer to the official Apache CloudStack advisory: https://lists.apache.org/thread/n8mt5b7wkpysstb8w7rr9f02kc5cq2xm.
More in Apache Cloudstack
View allCross-tenant manipulation in Apache CloudStack's Kubernetes Service (CKS) plugin allows a tenant to add and remove nodes
Unauthorized cross-tenant access in Apache CloudStack 4.21.0 through 4.22.0 allows remote unauthenticated attackers to g
Two-factor authentication bypass in Apache CloudStack allows an authenticated low-privileged user to exploit an improper
Cross-tenant root command execution in Apache CloudStack (4.14.0.0-4.20.3.0 and 4.21.0.0-4.22.1.0) allows an authenticat
Remote code execution in Apache CloudStack allows authenticated account users to execute arbitrary code on KVM hyperviso
SAML authentication bypass in Apache CloudStack 4.20.3.0 and 4.22.1.0 permits a network-positioned attacker to forge SAM
Authenticated CloudStack users can hijack volumes from other tenants' backups via the Backup plugin in versions 4.21.0.0
Apache CloudStack's MinIO integration fails to clean up bucket access policies when buckets are deleted, enabling previo
Sensitive OAuth configuration data is exposed to unauthenticated remote actors in Apache CloudStack's OAuth authenticati
Sensitive information exposure in Apache CloudStack's OAuth2 authentication plugin and Google OAuth integration allows u
Missing authorization controls across multiple Userdata-related APIs in Apache CloudStack expose cross-tenant data to an
Broken object-level authorization in Apache CloudStack exposes project role management APIs to Domain Admins operating o
Same technique Denial Of Service
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2025-209744
GHSA-jj3r-fj56-xf97