CVE-2025-59302 Apache CloudStack: Potential remote code execution on Javascript engine defined rules
MediumCVSS 4.7
EPSS 0.49%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Apache CloudStack | >= 4.18.0, < 4.20.2; >= 4.21.0, < 4.22.0 | 4.20.2, 4.22.0 | Fixed |
| apache cloudstack | = 4.21.0.0; >= 4.18.0.0, < 4.20.2.0 | 4.20.2.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Apache CloudStack | >= 4.18.0, < 4.20.2 | 4.20.2 |
| Apache CloudStack | >= 4.21.0, < 4.22.0 | 4.22.0 |
| apache cloudstack | >= 4.18.0.0, < 4.20.2.0 | 4.20.2.0 |
| apache cloudstack | = 4.21.0.0 | No fix listed |
References
- lists.apache.org mailing-list vendor-advisory
- www.openwall.com mailing-list third-party-advisory
- ENISA EUVD EUVD-2025-199820 third-party-advisory