CVE-2025-59302

published 27 Nov 2025 · updated 3 Nov 2026

Apache CloudStack: Potential remote code execution on Javascript engine defined rules

4.7MediumCVSS 4.7EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 4.20.2 and 4.22.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Apache Software Foundation>=4.18.0 <4.20.2, >=4.21.0 <4.22.04.20.2, 4.22.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-59302 severity on Zeptric[![CVE-2025-59302](https://zeptric.io/badge/cve/CVE-2025-59302.svg)](https://zeptric.io/cve/CVE-2025-59302)