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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-11-27 · Modified: 2026-11-03
- Record: https://cvemate.com/vulnerability/CVE-2025-59302 · JSON: https://cvemate.com/vulnerability/CVE-2025-59302/json

## Description

```text
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.
```

## Signals

- CVSS: 4.7 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
- EPSS: 0.49%, percentile 43.753%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache cloudstack: ≥ 4.18.0, \< 4.20.2 \| ≥ 4.21.0, \< 4.22.0
- apache cloudstack: ≥ 4.18.0.0, \< 4.20.2.0 \| 4.21.0.0

## References

- <https://lists.apache.org/thread/kwwsg2j85f1b75o0ht5zbr34d7h66788>
- <http://www.openwall.com/lists/oss-security/2025/11/27/2>

---

Data as of 2026-12-05T04:24:10.045Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
