GHSA-XMWR-88VW-5GHH
Authenticated RCE via Twig group filter array-callable
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-XMWR-88VW-5GHH divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
The Twig `group` filter’s arrow argument is invoked without the `checkArrow` guard that every other arrow-accepting filter has. `groupFilter(iterable $arr, callable|string $arrow)` takes the non-string branch `$groupKey = (string)$arrow($item, $key)` for any non-string `$arrow`. A Twig array literal such as `['craft\helpers\FileHelper','writeToFile']` is a valid PHP array-callable, is not a string, and is invoked with two attacker-controlled arguments — arbitrary static/instance method invocation. When combined with `FileHelper::writeToFile`, this writes an attacker-controlled webshell to the webroot, an authenticated RCE requiring no gadget.
Reachability gate (identical to published advisory GHSA-f5wm-88jv-g5hx): `enableTwigSandbox=true` (default false) plus authenticated Control Panel access, via B2 element-select condition rules (`BaseElementSelectConditionRule.php:130`, reachable by lower-privilege control panel editors).
Impact
An authenticated control panel user can achieve a remote code execution as the web user, no gadget required.
Report ID: 1720
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistcraftcms/cms |
Corregida | 5.11.0 | — | — |
5.11.0Arsenal 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-xmwr-88vw-5ghhLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
