{"id":"CVE-2025-59302","state":"PUBLISHED","title":"Apache CloudStack: Potential remote code execution on Javascript engine defined rules","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.\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.","publishedAt":"2025-11-27T11:46:25.521Z","updatedAt":"2026-02-26T16:07:27.738Z","severity":{"score":4.7,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L","source":"CISA-ADP"},"assigner":"apache","products":["Apache Software Foundation Apache CloudStack"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache CloudStack","defaultStatus":"unaffected","versions":[{"version":"4.18.0","status":"affected","lessThan":"4.20.2","versionType":"semver"},{"version":"4.21.0","status":"affected","lessThan":"4.22.0","versionType":"semver"}]}],"references":["https://lists.apache.org/thread/kwwsg2j85f1b75o0ht5zbr34d7h66788","http://www.openwall.com/lists/oss-security/2025/11/27/2"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:09:39.787Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/59xxx/CVE-2025-59302.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-59302","state":"PUBLISHED","datePublished":"2025-11-27T11:46:25.521Z","dateUpdated":"2026-02-26T16:07:27.738Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2025-09-12T02:34:41.709Z"},"containers":{"cna":{"title":"Apache CloudStack: Potential remote code execution on Javascript engine defined rules","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Apache Software Foundation","product":"Apache CloudStack","defaultStatus":"unaffected","versions":[{"version":"4.18.0","status":"affected","lessThan":"4.20.2","versionType":"semver"},{"version":"4.21.0","status":"affected","lessThan":"4.22.0","versionType":"semver"}]}],"references":[{"url":"https://lists.apache.org/thread/kwwsg2j85f1b75o0ht5zbr34d7h66788","tags":["vendor-advisory"]}],"metrics":[{"other":{"content":{"text":"low"},"type":"Textual description of severity"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"apache","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateUpdated":"2025-11-27T11:46:25.521Z"},"credits":[{"lang":"en","type":"finder","value":"Tianyi Cheng <chengtianyi@huawei.com>"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2025/11/27/2"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-27T12:07:30.768Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":4.7,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L","integrityImpact":"LOW","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"HIGH","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"id":"CVE-2025-59302","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-12-02T04:56:00.679228Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","type":"CWE","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-26T16:07:27.738Z"}}]}}}