GHSA-QM9X-RMCJ-H2RC
Authenticated RCE: Twig sandbox "on/as" behavior injection via "Asset::getMimeType" transform
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-QM9X-RMCJ-H2RC divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
The `#[AllowedInSandbox]` method `Asset::getMimeType(mixed $transform = null)` passes a caller-supplied transform array to `ImageTransforms::normalizeTransform()`, which — after rejecting only the `class` key — calls `Craft::createObject(['class'=>ImageTransform::class, ...$transform])` with no cleanse. Surviving `as X` / `on X` keys are honored during `ImageTransform` (a `craft\base\Model`) construction, attaching an attacker-controlled behavior/event handler and firing `EVENT_INIT`, yielding authenticated remote code execution.
Reachability gate (identical to published advisory GHSA-f5wm-88jv-g5hx): `enableTwigSandbox=true` (default false) plus authenticated Control Panel access, via the B1/B2 sandbox-render entry points (`Mailer.php:181-183`, `BaseElementSelectConditionRule.php:130`).
### Impact
Authenticated (Control Panel user) remote code execution as the web user via Yii behavior/event injection through a distinct sink (`Craft::createObject`).
Report ID: 1718
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistcraftcms/cms |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/craftcms/cms/security/advisories/GHSA-qm9x-rmcj-h2rcLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
