CVE-2025-59302: Apache CloudStack: Potential remote code execution on Javascript engine defined rules
Vulnerability summary
CVE-2025-59302 is a medium (CVSS 4.7) Improper Control of Generation of Code vulnerability in apache software foundation apache cloudstack. EPSS estimates a 0.49% chance of exploitation in the next 30 days, higher than 43.7% of scored vulnerabilities.
Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 27-11-2025PublishedVulnerability first disclosed.
- 03-11-2026Last modifiedVulnerability information updated.
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 metrics
2 scores · 2 sources · 1 version- NVDNIST4.7MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
EPSS trend
Probability
0.49%
Chance of exploitation in the next 30 days
Percentile
44%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.49% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Apache1 product
- cloudstack≥ 4.18.0.0, < 4.20.2.0 | 4.21.0.0
Apache software foundation1 product
- apache cloudstack≥ 4.18.0, < 4.20.2 | ≥ 4.21.0, < 4.22.0
2 vendors · 2 products