llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · craftcms/cms

GHSA-R56R-F696-C8W9

Control panel only administrator privilege escalation through sandbox allowed "getOwners(criteria)"

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión5.11.2
Exposición30 dDesde la divulgación, 22 oct 2026, 5:50 p. m.
Detección26 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de la severidad declarada por GHSA (alta) y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Ponle fecha: las tareas sin fecha son leyendas.Medio riesgo, cero excusas.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
22 oct 26
18 nov 26
22 nov 26
22 oct 26
30 oct 26
7 nov 26
14 nov 26
22 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-R56R-F696-C8W9 divulgada
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
GitHub

Craft exposes `NestedElementInterface::getOwners(array $criteria)` to sandboxed Twig through `#[AllowedInSandbox]`. Its implementation applies the caller’s array directly to an `ElementQuery` with `Craft::configure()` and then executes the query. Unlike the controllers’ direct query paths, it applies neither `Component::cleanseConfig()` nor `ElementHelper::cleanseQueryCriteria()`.

An authenticated control panel user can reach this method from the relational-condition object template feature. The attacker supplies a nested reference element and a sandboxed template that calls `object.getOwners()`. Yii treats `as <name>` and `on <event>` keys specially when `Craft::configure()` assigns them, allowing the attacker to attach a `yii\behaviors\AttributeTypecastBehavior` to the owner query and register a wildcard event handler. `ElementQuery::all()` fires a query event and invokes the attacker-selected typecast callback.

The production-safe proof selected Craft’s own `craft\helpers\FileHelper::createDirectory()` as the callback. The endpoint created an attacker-selected directory anywhere writable by the PHP worker, confirming arbitrary selection and invocation of a production-bundled PHP callable.

The same primitive has a direct, production-bundled administrator-escalation sink: `craft\records\User::updateAll(['admin' => true])`. Craft’s User record inherits Yii’s public static `updateAll($attributes, $condition = '', ...)`; the omitted condition updates every row in `{{%users}}`.

Impact

The attacker can select and invoke public static PHP callables that accept the attacker-controlled value. Most importantly, `craft\records\User::updateAll(['admin' => true])` promotes every account in the Craft users table, including the attacker’s account.

Report ID: 1897

Versiones

Rangos afectados

Afectada Corregida
craftcms/cms≥ 5.8.17 < 5.11.2
5.8.17
5.11.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistcraftcms/cms
Corregida 5.11.2 — —
Versiones corregidas5.11.2
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/craftcms/cms/security/advisories/GHSA-r56r-f696-c8w9

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.