Skip to main content
EPSS 0.7%top 48%

CVE-2026-50112: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Apache Software Foundation Apache CloudStack

0
High
Published: 08/21/2026 (08/21/2026, 08:29:41 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Apache Software Foundation

Apache CloudStack

Affected versions
>=4.14.0.0 <=4.20.3.0>=4.21.0.0 <=4.22.1.0
org.apache.cloudstack/cloudstack
pkg:maven/org.apache.cloudstack/cloudstack
Affected versions
=4.14.0.0>=4.14.0.0 <4.20.3.1=4.21.0.0>=4.21.0.0 <4.22.1.1

Run 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

AILast updated: 09/10/2026, 18:47:04 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses