llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · october/system

GHSA-9F5R-P27V-X2CH

Role Reorder Authorization Bypass in UserRoles Controller

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
3.8
Baja
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición18 dDesde la divulgación, 1 nov 2026, 3:33 p. m.
Detección17 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Monitoreo
Detectada +1
1 nov 26
19 nov 26
1 nov 26
6 nov 26
10 nov 26
15 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-9F5R-P27V-X2CH divulgada · CVSS 3.8 (GitHub)
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

The backend `UserRoles` controller applies a rank-based visibility filter (`applyRankPermissionsToQuery`) to its list and form queries, so a non-super-user holding `admins.roles` can only see and edit roles ranked below their own. The `admins.roles` permission is documented as "Allow users to create new roles and manage roles lower than their highest role."

The generic list reorder handler in `Backend\Widgets\ListStructure::onReorder()` resolved the target record with `newQueryWithoutScopes()->find(post('record_id'))` and then wrote new `sort_order` values via `setSortableOrder(post('sort_orders'))`, updating every posted ID by raw primary key without consulting the controller's visibility filter. A caller with `admins.roles` could therefore reorder roles above their own rank, promote a higher role below their own, then open and impersonate it through the existing role-management form (which passes its own rank filter once the target's `sort_order` has been rewritten).

The reporter demonstrated the chain against the built-in Developer role and against a custom higher role, in both cases escalating to permissions the attacker's role did not hold before the reorder request.

Impact
  • Privilege escalation across the documented rank boundary for any non-super user holding `admins.roles`
  • Effective permissions of any higher backend role can be obtained via role impersonation after the reorder
  • The rank changes persist in `backend_user_roles.sort_order` until an administrator corrects them
  • Direct super-user takeover was not demonstrated; escalation is bounded by the highest non-super role the attacker can promote
Patches

The vulnerability has been patched in v3.7.18 and v4.3.5. `UserRoles` now hooks `backend.list.beforeReorderStructure` and rejects the request with `ForbiddenException` if the reorder target OR any ID in `sort_orders[]` / `root_sort_orders[]` falls outside the caller's rank-filtered role set.

Workarounds

If upgrading immediately is not possible:
- Revoke `admins.roles` from all non-super-user roles
- Review `backend_user_roles.sort_order` for unexpected changes and end active backend sessions after correcting any drift

References
  • Reported by CodingRule
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:H
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:L
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
october/system≥ 4.0.0 ≤ 4.3.4
4.0.0
4.3.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistoctober/system
Sin parche — — —
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/octobercms/october/security/advisories/GHSA-9f5r-p27v-x2ch

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