CVE-2026-50112: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Apache Software Foundation Apache CloudStack
Description
CVE-2026-50112 is a high-severity OS command injection vulnerability in Apache CloudStack affecting versions from 4.14.0.0 through 4.20.3.0 and 4.21.0.0 through 4.22.1.0. An authenticated tenant can exploit this by registering a VM template with a malicious metalink file, leading to remote code execution as root on the KVM hypervisor host. The issue arises because inner URLs in metalink XML files are not properly validated against allowed schemes. Fixed versions are 4.20.3.1 and 4.22.1.1 or later.
CVSS v3.1
Score 8.8high
Affected software
Apache Software Foundation
Apache CloudStack
pkg:maven/org.apache.cloudstack/cloudstackRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2026-50112) in Apache CloudStack involves improper neutralization of special elements used in OS commands (CWE-78) and server-side request forgery (SSRF) via metalink mirror URL resolution. An authenticated tenant can register a template pointing to an attacker-controlled metalink file containing internal targets. The Secondary Storage VM retrieves and persists this data, which can be downloaded through normal APIs. When a user registers a VM template with directDownload=true and a URL to a .metalink file, the management server fetches the metalink XML and dispatches downloads to the KVM agent without re-validating inner URLs against the scheme allowlist. This allows an authenticated tenant with default User role to execute arbitrary shell commands as root on the KVM hypervisor host, enabling cross-tenant root access via the public CloudStack API. The affected versions are from 4.14.0.0 through 4.20.3.0 and 4.21.0.0 through 4.22.1.0. The vendor recommends upgrading to 4.20.3.1 or 4.22.1.1 or later to remediate the issue.
Potential Impact
Successful exploitation allows an authenticated tenant to achieve remote code execution as root on the KVM hypervisor host, resulting in cross-tenant compromise of the underlying compute infrastructure. This can lead to full system compromise, data breach, and disruption of services hosted on the affected hypervisor.
Mitigation Recommendations
A fix is available. Users should upgrade Apache CloudStack to version 4.20.3.1 or 4.22.1.1 or later, which address this vulnerability by properly validating metalink URLs and preventing OS command injection. Until upgraded, restrict template registration privileges to trusted users only.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-06-03T15:48:58.143Z
- State
- PUBLISHED
Threat ID: 6a88309eacd9273b4907b85d
Added to database: 08/21/2026, 11:03:58 UTC
Last enriched: 09/10/2026, 18:47:04 UTC
Last updated: 10/04/2026, 18:53:16 UTC
Views: 74
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.