GHSA-XF86-HFPM-92XR
AI Chat route exposes admin-only tools to non-admin users
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 12.3.0 | directus · -62 d desde divulgación | |
| Divulgación | Publicada | GHSA-XF86-HFPM-92XR divulgada · CVSS 3.1 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The AI Chat endpoint (`POST /ai/chat`) did not enforce the admin-only restriction on AI tools. Any authenticated user with app access could request the `collections`, `fields`, `relations`, `flows` and `operations` tools, which are reserved for administrators. The MCP endpoint enforced this restriction correctly.
Impact
The tools ran with the requesting user's own accountability, so they did not grant permissions beyond what the user already had:
- `collections`, `fields` and `relations` are still guarded by the admin checks in their underlying services.
- `flows` and `operations` are subject to the regular permission system. A non-admin user could only read or modify flows and operations their policies already allow, the same as through the REST API.
The issue is that the admin-only tool boundary was not applied consistently. Instances where non-admin policies grant access to `directus_flows` or `directus_operations` are most affected. We recommend keeping those collections admin-only, as described in the security best practices https://directus.io/docs/configuration/security-best-practices.
Exploitation requires an AI provider to be configured on the instance.
Workarounds
- Disable the AI Chat feature by removing the configured AI provider.
- Make sure non-admin policies have no permissions on `directus_flows` and `directus_operations`.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmdirectus |
Corregida | 12.3.0 | -62 d | 12.6.1 no afectada |
12.3.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/directus/directus/security/advisories/GHSA-xf86-hfpm-92xrLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
