CVE-2026-25077

Apache CloudStack: Unauthenticated Command Injection in Direct Download Templates

Published May 8, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Missing file name sanitization during template registration allows an attacker to register a malicious template that, when deployed, injects arbitrary commands into the KVM hypervisor. This flaw enables the attacker to execute code on the underlying host, thereby compromising resource integrity, confidentiality, causing data loss, denial of service, and disrupting the availability of the KVM‑based environment.

Affected Systems

Apache CloudStack releases prior to 4.20.3.0 or 4.22.0.1, which still permit user‑initiated template registration for KVM deployments.

Risk and Exploitability

The CVSS score of 8.8 indicates high severity, while the EPSS score of < 1% shows a very low probability of exploitation and the flaw is not listed in the CISA KEV catalog. The likely attack is via the CloudStack web UI or API, where any user with template‑registration privileges can submit a malicious file name. Upon deployment, the injected commands run on the hypervisor, allowing full control of the host and the entire infrastructure.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache CloudStack to version 4.20.3.0, 4.22.0.1, or any later release that contains the fix
  • Restrict template registration privileges to administrator accounts and enforce least privilege so that non‑admin users cannot register templates
  • Implement strict validation and sanitization of template file names before registration to eliminate shell metacharacters and path traversal sequences

Generated by OpenCVE AI on May 10, 2026 at 16:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:apache:cloudstack:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache cloudstack
Vendors & Products Apache
Apache cloudstack
Type Values Removed Values Added
Description 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.
Title Apache CloudStack: Unauthenticated Command Injection in Direct Download Templates
Weaknesses CWE-94
References
Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
May 10, 2026, 2:31 PM
Reserved
Jan 28, 2026, 10:03 PM
Status
Modified
Published
May 8, 2026, 1:16 PM
Modified
Oct 26, 2026, 7:10 PM