CVE-2025-59302
MEDIUM 4.7CVSS 3.1In 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.
- Published
- 27 Nov 2025
- Last modified
- 18 Oct 2026
- Assigned by
- security@apache.org
- NVD status
- Analyzed
- Weakness
- CWE-94
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | cloudstackcpe:2.3:a:apache:cloudstack:*:*:*:*:*:*:*:* |
>= 4.18.0.0, < 4.20.2.0 | 4.20.2.0 |
| NVD | apache | cloudstackcpe:2.3:a:apache:cloudstack:4.21.0.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
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 27 Nov 2025)