Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain CloudStack account credentials
-
DeliveryRegister malicious template with crafted filename
-
ExploitTemplate download triggers code injection
-
ExecutionExecute arbitrary code on KVM host
-
ImpactCompromise hypervisor integrity and hosted VMs
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must possess valid CloudStack account credentials with template registration permissions (PR:L indicates low-privileged authenticated access). The target CloudStack deployment must use KVM as the hypervisor technology, as the vulnerability specifically affects template downloads to KVM primary storage - deployments using VMware vSphere, XenServer, or other supported hypervisors are not affected by this attack vector. The CloudStack configuration must allow account users to register templates for direct download to primary storage, which is the default configuration per the vulnerability description. Exploitation is limited by the requirement for authenticated access and the specific hypervisor technology, but once these conditions are met, attack complexity is low (AC:L) with no user interaction required (UI:N). These prerequisites significantly narrow the attack surface compared to unauthenticated remote vulnerabilities, making this a targeted threat primarily for multi-tenant KVM-based CloudStack environments where untrusted users have account access. |
| Impact | The CVSS 8.8 score (AV:N/AC:L/PR:L/UI:N) indicates network-exploitable vulnerability with low attack complexity requiring only low-privileged authentication. However, multiple risk signals provide critical context. EPSS score of 0.04% (11th percentile) suggests very low probability of exploitation in the wild. CISA SSVC framework reports no exploitation observed, not automatable, with partial technical impact. The CVSS score reflects worst-case scenario impact on KVM infrastructure, but real-world risk is significantly constrained by exploitation prerequisites: attacker must have valid CloudStack account credentials AND the deployment must use KVM hypervisors (not VMware, XenServer, or other supported platforms). The 'low privilege' requirement means any authenticated user can exploit this, not just administrators, elevating concern for multi-tenant environments. Vendor patches are confirmed available (4.20.3.0, 4.22.0.1) per Apache advisory. This represents a serious vulnerability for KVM-based CloudStack deployments but current exploitation risk appears theoretical rather than active. Priority should be HIGH for KVM environments with untrusted account users, MEDIUM for single-tenant KVM deployments, LOW for non-KVM hypervisor deployments. |
| Exploit ScenarioDerived | An authenticated CloudStack account user with standard privileges accesses the template registration interface and submits a malicious template URL with a crafted filename containing code injection sequences (e.g., command substitution or path traversal with executable content). When CloudStack processes this registration to download the template directly to KVM primary storage, the unsanitized filename executes arbitrary commands on the KVM hypervisor host with the privileges of the CloudStack agent process. The attacker gains code execution on the hypervisor infrastructure, potentially compromising all virtual machines on that host, exfiltrating data from primary storage, or disrupting cloud services. No public proof-of-concept code is identified at time of analysis, but the attack technique is straightforward for anyone with CloudStack account access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – May 10, 2026
Remote code execution in Apache CloudStack allows authenticated account users to execute arbitrary code on KVM hypervisor hosts by registering malicious templates with unsanitized filenames. Affects CloudStack 4.11.0 through 4.20.2.0 and 4.21.0.0 through 4.22.0.0 when using KVM hypervisors. Despite high CVSS (8.8), EPSS exploitation probability is very low (0.04%, 11th percentile) and CISA SSVC reports no active exploitation. Vendor-released patches are available in versions 4.20.3.0 and 4.22.0.1.
Earlier versions of this analysis (1)
Remote code execution in Apache CloudStack allows authenticated users to register malicious templates with unsanitized file names that execute arbitrary code on KVM hypervisor hosts, compromising the integrity and confidentiality of virtualized infrastructure managed by the platform. Affected versions range from 4.11.0 through 4.20.2.0 and 4.21.0.0 through 4.22.0.0; exploitation requires valid CloudStack user account credentials but no elevated privileges. Vendor-released patches are available in CloudStack 4.20.3.0 and 4.22.0.1.
RemediationAI
Upgrade to Apache CloudStack version 4.20.3.0 or 4.22.0.1 (or later versions) which contain vendor-confirmed fixes for the filename sanitization vulnerability per the official Apache advisory at https://lists.apache.org/thread/n8mt5b7wkpysstb8w7rr9f02kc5cq2xm. For environments unable to immediately patch, implement these compensating controls with noted trade-offs: (1) Restrict template registration permissions to trusted administrative accounts only via CloudStack role-based access control, removing this capability from general account users - this limits cloud self-service functionality but prevents untrusted users from exploiting the vulnerability. (2) Deploy file integrity monitoring on KVM hypervisor hosts to detect unauthorized file creation in primary storage paths - provides detection but not prevention, requiring active monitoring and incident response. (3) Isolate KVM management networks from untrusted account user access and enforce strict network segmentation between CloudStack management servers and hypervisor hosts - reduces attack surface but does not eliminate risk for authenticated users. All workarounds reduce functionality or require additional security tooling; vendor patching is the primary recommended remediation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache CloudStack is an open-source Infrastructure-as-a-Service (IaaS) cloud computing platform that manages compute, storage, and network resources. The vulnerability (CWE-94: Improper Control of Generation of Code) exists in CloudStack's template registration functionality for KVM hypervisors. When account users register templates for direct download to primary storage, the template filename parameter lacks proper sanitization. This allows injection of malicious code or path traversal sequences that execute when the template file is processed on the KVM host filesystem. The affected CPE (cpe:2.3:a:apache_software_foundation:apache_cloudstack) covers the platform's core orchestration layer that interfaces with hypervisor infrastructure. KVM (Kernel-based Virtual Machine) is a Linux hypervisor technology, and CloudStack's management of KVM hosts involves file operations that became the attack surface for this code injection vulnerability.
Know when Apache Cloudstack gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (apache) · only source for this CVE.
CVSS VectorVendor: apache
Lifecycle Timeline
6DescriptionCVE.org
Account users are allowed by default to register templates to be downloaded directly to the primary storage for deploying instances using the KVM hypervisor. Due to missing file name sanitization, an attacker can register malicious templates to execute arbitrary code on the KVM hosts. This can result in the compromise of resource integrity and confidentiality, data loss, denial of service, and availability of the KVM-based infrastructure managed by CloudStack.
Users are recommended to upgrade to Apache CloudStack versions 4.20.3.0 or 4.22.0.1, or later, which fixes this issue.
Executive ViewAI
Apache CloudStack contains a remote code execution vulnerability affecting versions 4.11.0 through 4.20.2.0 and 4.21.0 through 4.22.0.0 with KVM hypervisors, enabling authenticated users to execute arbitrary code on hypervisor hosts through malicious template registration. While the technical severity is high (CVSS 8.8), actual exploitation risk is minimal with no confirmed active attacks, but organizations running affected CloudStack versions should prioritize patching to prevent potential lateral movement from compromised tenant accounts to underlying infrastructure.
Vendor-released patch: CloudStack 4.20.3.0 and 4.22.0.1. If patching cannot be completed immediately: restrict template registration to administrative accounts only, implement network segmentation to limit KVM hypervisor access from CloudStack management plane, and audit existing templates for suspicious or malformed filenames. Monitor CloudStack logs for template registration events from non-administrative accounts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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
SAML authentication bypass in Apache CloudStack 4.20.3.0 and 4.22.1.0 permits a network-positioned attacker to forge SAM
Apache CloudStack deployments that use MinIO-backed object storage fail to revoke the MinIO policy associated with a buc
Authenticated CloudStack users can hijack volumes from other tenants' backups via the Backup plugin in versions 4.21.0.0
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
Server-Side Request Forgery in Apache CloudStack's webhook module lets attackers coerce the management server into issui
EUVD-2026-28549
GHSA-vhgc-6rjx-f6vv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB