{"id":"CVE-2025-59302","sourceIdentifier":"security@apache.org","published":"2025-11-27T12:15:47.410","lastModified":"2026-10-18T20:10:00.110","vulnStatus":"Analyzed","cveTags":[],"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."},{"lang":"es","value":"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."}],"affected":[{"source":"security@apache.org","affectedData":[{"vendor":"Apache Software Foundation","product":"Apache CloudStack","defaultStatus":"unaffected","versions":[{"version":"4.18.0","lessThan":"4.20.2","versionType":"semver","status":"affected"},{"version":"4.21.0","lessThan":"4.22.0","versionType":"semver","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L","baseScore":4.7,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW"},"exploitabilityScore":1.2,"impactScore":3.4}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2025-12-02T04:56:00.679228Z","id":"CVE-2025-59302","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security@apache.org","type":"Secondary","description":[{"lang":"en","value":"CWE-94"}]},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","description":[{"lang":"en","value":"CWE-94"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:apache:cloudstack:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18.0.0","versionEndExcluding":"4.20.2.0","matchCriteriaId":"00CA5BCF-572F-47AE-B9A6-F4A91BB3B484"},{"vulnerable":true,"criteria":"cpe:2.3:a:apache:cloudstack:4.21.0.0:*:*:*:*:*:*:*","matchCriteriaId":"8D19C2F1-2730-4EAE-A7CF-950F185B76FC"}]}]}],"references":[{"url":"https://lists.apache.org/thread/kwwsg2j85f1b75o0ht5zbr34d7h66788","source":"security@apache.org","tags":["Mailing List","Vendor Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2025/11/27/2","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"]}]}