GHSA-J697-8X93-7MP2
Twig sandbox allowlist bypass discloses sensitive values
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-J697-8X93-7MP2 divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Six sandbox-allowlisted Twig filters — `column`, `contains`, `filterByValue`, `index`, `where`, `multisort` — are registered without the `needs_is_sandboxed` flag (unlike `map`/`filter`/`sort`/`reduce`, which have it). Each resolves a caller-supplied string key via `ArrayHelper::getValue()`, which performs a raw `$obj->$key` property/getter dispatch (triggering Yii `__get`) with dot-path graph traversal, never consulting the sandbox `SecurityPolicy`. This lets a sandboxed template read non-allowlisted getters and traverse the always-present `craft` global to disclose `securityKey`, database credentials, and auth tokens.
Reachability gate:`enableTwigSandbox=true` (default false) plus authenticated Control Panel access. B2 element-select condition rules need no element in scope.
Impact
Sandbox allowlist bypass yielding disclosure of `securityKey` (`GeneralConfig.php` public property — underpins CSRF tokens, cookie signing, and data encryption), database credentials, session/request data, and auth-cookie tokens. Read-only: `getValue` invokes a key as a callable only when it is a real `\Closure`, which a Twig template cannot construct — so this is an arbitrary property/no-arg-getter READ and dot-path traversal, not an RCE.
Report ID: 1719
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistcraftcms/cms |
Corregida | 4.18.8, 5.11.0 | — | — |
4.18.85.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-j697-8x93-7mp2Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
