llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · directus

GHSA-5H38-6755-G83W

Path traversal in the Mail Service template engine allows arbitrary host file disclosure

Parche disponible
Descargar PNG JSON
CVSS 3.1
6.8
Media
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -35 d de la divulgación
Exposición108 dDesde la divulgación, 5 ago 2026, 10:58 a. m.
Detección105 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.
Revisa, agenda, parchea. El clásico de siempre.Ni pánico ni ignorarla: término medio.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 12.1.0
Monitoreo
Detectada +1
1 jul 26
5 ago 26
18 nov 26
21 nov 26
1 jul 26
6 ago 26
11 sept 26
16 oct 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 12.1.0 directus · -35 d desde divulgación
Divulgación Publicada GHSA-5H38-6755-G83W divulgada · CVSS 6.8 (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

Description

Summary

The Directus Mail Service resolves email template names without confirming that the resolved path stays inside the
configured templates directory. An authenticated user who can configure a Flow "Send Email" operation can supply a
relative template name that traverses outside the templates root, causing the Liquid engine to load and render an
arbitrary file from the host filesystem. Combined with the ability to place a file with an attacker-controlled name and
location, this becomes a Local File Inclusion primitive that discloses sensitive host files.

This is most impactful in multi-tenant or managed-hosting deployments, where a tenant-level administrator is expected to
operate only within the application boundary and has no legitimate access to the underlying host filesystem.

Details

`MailService.renderTemplate` builds the template path by joining the caller-supplied `template` value onto the templates
directory with `path.resolve`. Because `path.resolve` collapses `../` segments, a relative value such as
`../../some/other/location/file` resolves to a path outside the intended templates root, and no check rejected paths
that escaped that root. The Liquid engine then reads and renders whichever file the path points to and returns the
rendered output in the email body.

The `template` value is reachable by any user who can create or edit a Flow mail operation (the operation's `template`
option flows directly into the render call). To make the resolved path land on a file the engine will load, an attacker
pairs this with control over a stored file's on-disk name and location; that file-placement issue is tracked separately
under GHSA-xjxq-pj7h-g676. Once a suitable file exists, the traversal in the mail service turns it into readable output,
and Liquid include directives within a rendered template can pull in further host files.

Impact
  • Host file disclosure from an application context. A user restricted to application features can read files outside
  • Secret exposure and downstream escalation. Disclosure of the application secret and database credentials can
  • Weakened tenant isolation. In shared-hosting or SaaS deployments, a tenant administrator can reach files belonging

The vulnerability requires an authenticated account with administrative capabilities (managing Flows and files), so it
is primarily an authority-boundary and tenant-isolation issue rather than an unauthenticated exposure.

Credits

Reported by @drkim-dev

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

Rangos afectados

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

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmdirectus
Corregida 12.1.0 -35 d 12.6.1 no afectada
Versiones corregidas12.1.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-5h38-6755-g83w

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