llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · directus

GHSA-32CW-MF7W-GPQR

Authenticated persistent Denial of Service via prototype pollution in CSV import

Parche disponible
Descargar PNG JSON
CVSS 3.1
7.1
Alta
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -23 d de la divulgación
Exposición22 dDesde la divulgación, 30 oct 2026, 9:50 a. m.
Detección19 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 vector CVSS 3.1 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.
Las PoC crecen rápido, como las llamas bebé.Mis orejas detectan algo raro por aquí.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 12.5.0
Monitoreo
Detectada +1
7 oct 26
30 oct 26
18 nov 26
21 nov 26
7 oct 26
18 oct 26
30 oct 26
10 nov 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 12.5.0 directus · -23 d desde divulgación
Divulgación Publicada GHSA-32CW-MF7W-GPQR divulgada · CVSS 7.1 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Summary

An authenticated user who can import into any collection can pollute `Object.prototype` for the whole Directus process with a single CSV import. The polluted key is then folded into the SQL of every subsequent object-form query, so logins and most reads fail with a database error. The instance stays unusable until it is restarted. This is a bypass of the fix for GHSA-gwvv-rr68-cmv6.

Details

The fix for GHSA-gwvv-rr68-cmv6 introduced a `setDeep` helper that builds nested paths on null-prototype objects. It was meant to reuse an existing path segment only when that segment is an own object, but it checked only `typeof node[key] === 'object'`. That plain read follows the prototype chain, so an inherited `__proto__` segment resolves to `Object.prototype` whenever the current node is an ordinary object.

The CSV importer builds each row by calling `setDeep` once per header, and it runs each cell through `parseJSON` first. A cell containing `{}` therefore places an ordinary, prototype-bearing object into the row. A later header that walks through it reaches the shared prototype:

a,a.__proto__.polluted
{},"yes"

The first header sets `row.a = {}`. The second header walks `row`, then `a`, then `a.__proto__` (`Object.prototype`), and sets `Object.prototype.polluted = 'yes'`.

knex builds object-form `.where()` and `.update()` clauses by enumerating inherited enumerable properties, so after the import every such query gains a phantom `polluted` column. For example, the `last_access` update that runs on every login becomes `update directus_users set last_access = ?, polluted = 'yes' where id = ? and polluted = 'yes'`, which fails with an unknown-column error. Because the injected key also lands in the `WHERE` clause, affected writes fail rather than modify extra columns.

Impact

  • Persistent denial of service. After one import request, every login and most reads fail until the process is restarted. The process itself keeps running, so health checks and supervisors do not recover it automatically.
  • Low privilege. Only an authenticated account with `create` and `update` permission on a single collection is required. No admin access or non-default configuration is needed.

Credits

Reported by Al Baradi Joy (@a1barad1)

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:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:L
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
8.3/ 10Alto
Vector 8.3 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
directus< 12.5.0
12.5.0
12.6.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmdirectus
Corregida 12.5.0 -23 d 12.6.1 no afectada
Versiones corregidas12.5.0
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/directus/directus/security/advisories/GHSA-32cw-mf7w-gpqr

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