CVE-2026-50112: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Apache Software Foundation Apache CloudStack
CVE-2026-50112 is an OS command injection vulnerability in Apache CloudStack affecting versions 4.14.0.0 through 4.20.3.0 and 4.21.0.0 through 4.22.1.0. It allows an authenticated tenant to register a VM template referencing a malicious metalink file, leading to server-side request forgery (SSRF) and remote code execution (RCE) on the KVM hypervisor host. The vulnerability arises because URLs inside metalink XML files are not properly validated against allowed schemes, enabling arbitrary shell command execution as root on the hypervisor. This can result in cross-tenant compromise via the public CloudStack API. Upgrades to versions 4.20.3.1 or 4.22.1.1 or later are recommended to fix the issue.
AI Analysis
Technical Summary
This vulnerability involves improper neutralization of special elements used in OS commands (CWE-78) and SSRF (CWE-918) in Apache CloudStack. An authenticated tenant can exploit the metalink mirror URL resolution process by registering a template with a malicious metalink file. The Secondary Storage VM fetches and stores this file, which contains internal targets. When a VM template is registered with directDownload=true and a metalink URL, the management server fetches the metalink XML and instructs the KVM agent to download inner URLs without validating them against an allowed scheme list. This flaw enables an authenticated user with the default User role to execute arbitrary shell commands as root on the KVM hypervisor host, leading to cross-tenant root compromise. 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
An authenticated tenant with default User role privileges can achieve remote code execution as root on the KVM hypervisor host that runs other tenants' virtual machines. This results in cross-tenant compromise of the underlying compute infrastructure via the public CloudStack API. The vulnerability also enables server-side request forgery through the metalink mirror URL resolution process, potentially exposing internal network resources. The impact is severe due to the ability to execute arbitrary commands with root privileges on the hypervisor.
Mitigation Recommendations
Users should upgrade Apache CloudStack to version 4.20.3.1 or 4.22.1.1 or later, where this vulnerability is fixed. No official patch or temporary workaround details are provided in the advisory. Until upgraded, restrict authenticated tenant capabilities and monitor for suspicious template registrations involving metalink files. Patch status is confirmed by vendor recommendation to upgrade to these fixed versions.
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 an OS command injection vulnerability in Apache CloudStack affecting versions 4.14.0.0 through 4.20.3.0 and 4.21.0.0 through 4.22.1.0. It allows an authenticated tenant to register a VM template referencing a malicious metalink file, leading to server-side request forgery (SSRF) and remote code execution (RCE) on the KVM hypervisor host. The vulnerability arises because URLs inside metalink XML files are not properly validated against allowed schemes, enabling arbitrary shell command execution as root on the hypervisor. This can result in cross-tenant compromise via the public CloudStack API. Upgrades to versions 4.20.3.1 or 4.22.1.1 or later are recommended to fix the issue.
Affected software
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 involves improper neutralization of special elements used in OS commands (CWE-78) and SSRF (CWE-918) in Apache CloudStack. An authenticated tenant can exploit the metalink mirror URL resolution process by registering a template with a malicious metalink file. The Secondary Storage VM fetches and stores this file, which contains internal targets. When a VM template is registered with directDownload=true and a metalink URL, the management server fetches the metalink XML and instructs the KVM agent to download inner URLs without validating them against an allowed scheme list. This flaw enables an authenticated user with the default User role to execute arbitrary shell commands as root on the KVM hypervisor host, leading to cross-tenant root compromise. 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
An authenticated tenant with default User role privileges can achieve remote code execution as root on the KVM hypervisor host that runs other tenants' virtual machines. This results in cross-tenant compromise of the underlying compute infrastructure via the public CloudStack API. The vulnerability also enables server-side request forgery through the metalink mirror URL resolution process, potentially exposing internal network resources. The impact is severe due to the ability to execute arbitrary commands with root privileges on the hypervisor.
Mitigation Recommendations
Users should upgrade Apache CloudStack to version 4.20.3.1 or 4.22.1.1 or later, where this vulnerability is fixed. No official patch or temporary workaround details are provided in the advisory. Until upgraded, restrict authenticated tenant capabilities and monitor for suspicious template registrations involving metalink files. Patch status is confirmed by vendor recommendation to upgrade to these fixed versions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-06-03T15:48:58.143Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a88309eacd9273b4907b85d
Added to database: 08/21/2026, 11:03:58 UTC
Last enriched: 08/21/2026, 11:05:44 UTC
Last updated: 08/21/2026, 12:18:19 UTC
Views: 4
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.