# CVE-2025-59302: Apache CloudStack: Potential remote code execution on Javascript engine defined rules

- Severity: Medium 4.7 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2025-11-27T11:46:25.521Z
- Modified: 2026-11-03T22:03:06.484Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache CloudStack: from 4.18.0 before 4.20.2; from 4.21.0 before 4.22.0
- apache cloudstack: from 4.18.0.0 before 4.20.2.0; 4.21.0.0

## References

- <https://lists.apache.org/thread/kwwsg2j85f1b75o0ht5zbr34d7h66788> (mailing-list, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2025/11/27/2> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2025-59302](https://www.cve.org/CVERecord?id=CVE-2025-59302), CVE Terms of Use, modified 2026-11-03
- NVD: [CVE-2025-59302](https://nvd.nist.gov/vuln/detail/CVE-2025-59302), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-59302 · Whole record: https://cve.day/CVE-2025-59302.json · Rebuilt by cve.day 2026-11-25T22:59:08.068Z
