{"id":"CVE-2025-59302","aliases":["CVE-2025-59302"],"related":[],"kind":"vulnerability","state":"published","title":"Apache CloudStack: Potential remote code execution on Javascript engine defined rules","summary":"In  Apache CloudStack improper control of generation of code ('Code Injection') vulnerability is found in the following APIs which are accessible only to admins.\n\n  *  quotaTariffCreate\n  *  quotaTariffUpdate\n  *  createSecondaryStorageSelector\n  *  updateSecondaryStorageSelector\n  *  updateHost\n  *  updateStorage\n\n\nThis 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.\n\nThe 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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.\n\n  *  quotaTariffCreate\n  *  quotaTariffUpdate\n  *  createSecondaryStorageSelector\n  *  updateSecondaryStorageSelector\n  *  updateHost\n  *  updateStorage\n\n\nThis 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.\n\nThe 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.","source":"cvelist"},{"lang":"es","text":"En Apache CloudStack se encuentra una vulnerabilidad de control inadecuado de la generación de código ('Inyección de Código') en las siguientes API, que son accesibles solo para administradores:\n\n  * quotaTariffCreate\n  * quotaTariffUpdate\n  * createSecondaryStorageSelector\n  * updateSecondaryStorageSelector\n  * updateHost\n  * updateStorage\n\nEste problema afecta a Apache CloudStack: desde 4.18.0 antes de 4.20.2, desde 4.21.0 antes de 4.22.0. Se recomienda a los usuarios actualizar a las versiones 4.20.2 o 4.22.0, que contienen la corrección.\n\nLa corrección introduce una nueva bandera de configuración global, js.interpretation.enabled, que permite a los administradores controlar la interpretación de expresiones JavaScript en estas API, mitigando así el riesgo de inyección de código.","source":"nvd"}],"published":"2025-11-27T11:46:25.521Z","modified":"2026-11-03T22:03:06.484Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"semver","introduced":"4.18.0","fixed":"4.20.2","status":"affected"},{"type":"semver","introduced":"4.21.0","fixed":"4.22.0","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache CloudStack","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.18.0.0","fixed":"4.20.2.0"},{"status":"affected","version":"4.21.0.0"}],"vendor":"apache","product":"cloudstack","cpe":"cpe:2.3:a:apache:cloudstack:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://lists.apache.org/thread/kwwsg2j85f1b75o0ht5zbr34d7h66788","tags":["mailing-list","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2025/11/27/2","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Tianyi Cheng <chengtianyi@huawei.com>"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-12-02T04:56:00.679Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59302","url":"https://www.cve.org/CVERecord?id=CVE-2025-59302","licence":"CVE Terms of Use","modified":"2026-11-03T22:03:06.484Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59302","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59302","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:08.068Z","epss":{"score":0.0049,"percentile":0.43744,"date":"2026-12-01T12:00:22.000Z"}}