Apache CloudStack Code Injection Vulnerability Allowing Potential Remote Code Execution

Vulnerability

A code injection vulnerability has been identified in Apache CloudStack versions 4.18.0 prior to 4.20.2 and 4.21.0 prior to 4.22.0. This vulnerability, which could lead to remote code execution, arises from improper control over code generation in specific APIs in the management server. The affected APIs, accessible only to administrators, include quotaTariffCreate, quotaTariffUpdate, createSecondaryStorageSelector, updateSecondaryStorageSelector, updateHost, and updateStorage.

Impact

Exploitation of this vulnerability could allow for remote code execution on the server where Apache CloudStack is running.

Remediation

Users are advised to upgrade to Apache CloudStack versions 4.20.2 or 4.22.0, which include the necessary fix. The fix introduces a global configuration flag, js.interpretation.enabled, that allows administrators to control the interpretation of JavaScript expressions in the affected APIs, thereby reducing the risk of code injection.

Added: Nov 27, 2025, 12:18 PM
Updated: Nov 27, 2025, 1:23 PM

Vulnerability Rating

Custom Algorithm
spread
6.2
impact
10.0
exploitability
5.2
remediation
7.9
relevance
1.2
threat
0.0
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.