{"schemaVersion":3,"id":"CVE-2025-59302","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-11-27T11:46:25.521Z","modified":"2026-02-26T16:07:27.738Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.7,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00457,"percentile":0.38222,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00457},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00457,"percentile":0.38222}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00457,"percentile":0.38222}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"apache software foundation","product":"apache cloudstack","name":"Apache CloudStack","label":"apache cloudstack","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.18.0, < 4.20.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.21.0, < 4.22.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.18.0, < 4.20.2 | ≥ 4.21.0, < 4.22.0","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_cloudstack"},{"vendor":"apache","product":"cloudstack","name":"cloudstack","label":"cloudstack","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.18.0.0, < 4.20.2.0","noFixRecorded":false,"fixedIn":null},{"text":"4.21.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.18.0.0, < 4.20.2.0 | 4.21.0.0","eol":null,"hubHref":"/vendor/apache/cloudstack"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread/kwwsg2j85f1b75o0ht5zbr34d7h66788","label":"lists.apache.org/thread/kwwsg2j85f1b75o0ht5zbr34d7h66788","hostname":"lists.apache.org","tags":["Vendor Advisory","Mailing List"]},{"url":"http://www.openwall.com/lists/oss-security/2025/11/27/2","label":"www.openwall.com/lists/oss-security/2025/11/27/2","hostname":"www.openwall.com","tags":["Mailing List","Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-11-27T11:46:25.521Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-02-26T16:07:27.738Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":19,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T00:52:36.463Z","stale":false,"partial":false}}