Medium severity · published Nov 27, 2025
CVE-2025-59302
Apache CloudStack: Potential remote code execution on Javascript engine defined rules
4.7
CVSS
0.5%
EPSS
No
On KEV
Description
In Apache CloudStack improper control of generation of code ('Code Injection') vulnerability is found in the following APIs which are accessible only to admins.
* quotaTariffCreate
* quotaTariffUpdate
* createSecondaryStorageSelector
* updateSecondaryStorageSelector
* updateHost
* updateStorage
This issue affects Apache CloudStack: from 4.18.0 before 4.20.2, from 4.21.0 before 4.22.0. Users are recommended to upgrade to versions 4.20.2 or 4.22.0, which contain the fix.
The fix introduces a new global configuration flag, js.interpretation.enabled, allowing administrators to control the interpretation of JavaScript expressions in these APIs, thereby mitigating the code injection risk.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
High
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 42% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AC
Apache CloudStack · Apache Software Foundation
4.18.0 before 4.20.2; 4.21.0 before 4.22.0 · source: vendor
CL
Cloudstack · Apache
4.18.0.0 before 4.20.2.0; 4.21.0.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-59302
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-59302
Mailing List
https://lists.apache.org/thread/kwwsg2j85f1b75o0ht5zbr34d7h66788
Mailing List
http://www.openwall.com/lists/oss-security/2025/11/27/2
More from Apache CloudStack
9.9
CVE-2024-50386
Apache CloudStack: Directly downloaded templates can be used to abuse KVM-based infrastructure
9.8
CVE-2024-38346
Apache CloudStack: Unauthenticated cluster service port leads to remote execution
9.8
CVE-2024-39864
Apache CloudStack: Integration API service uses dynamic port when disabled
9.8
CVE-2024-29006
Apache CloudStack: x-forwarded-for HTTP header parsed by default
9.1
CVE-2026-59085
Apache CloudStack: Server-Side Request Forgery (SSRF) vulnerability in webhook module
