llamaCVEVulnerability Intelligence
/
Advisory · GitHub · crates.io · surrealdb

GHSA-CPH5-PM57-9W9C

Direct Filesystem Buckets Permit Path Traversal Across Key-Based ACL Boundaries

Texto original en inglés · Ver en español

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición18 dDesde la divulgación, 3 nov 2026, 10:51 a. m.
Detección17 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.
Puede que hoy no pase nada. Puede.Tu yo del futuro te agradecerá revisarla hoy.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 4.0.0
Monitoreo
Detectada +1
3 nov 26
20 nov 26
21 nov 26
3 nov 26
8 nov 26
12 nov 26
17 nov 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-CPH5-PM57-9W9C divulgada
Remediación Parche 4.0.0 surrealdb · 0 d desde divulgación
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
A path traversal vulnerability exists in SurrealDB's direct filesystem bucket implementation (`surrealdb/surrealdb`). In `surrealdb/core/src/buc/controller.rs` and `store/file.rs`, key permissions are checked against the un-normalized object key, but the backend path collapses `..` sequences via path cleaning.

### Vulnerability Details
- Affected Files: `surrealdb/core/src/buc/controller.rs` (`BucketController::check_permission`), `surrealdb/core/src/buc/store/file.rs` (`FileStore::to_os_path`)
- Mechanism: Access control policy verifies the requested object key before resolution. However, `FileStore::to_os_path` normalizes relative directory components via `.clean()` without calling `check_no_traversal` (which is only present on `PrefixedStore`). A tenant authorized only for keys within `/public/` can supply a key such as `/public/../private/confidential.txt`, which passes permission evaluation and resolves to arbitrary files within the storage root.
- Impact: Unauthorized read, write, and deletion of files outside permitted key boundaries.

### Recommended Remediation
Enforce strict traversal checking (`check_no_traversal`) on all direct `FileStore` key inputs prior to permission evaluation and file system operations.

---
Reported by: ARSB

Patches

A patch has been created that runs the traversal check on the key itself for a direct `file://` bucket, so a `..` key can no longer cross the bucket's key-based ACL boundary.

  • Version 4.0.0 and later are not affected by this issue.
References
  • `fix(buc): filesystem bucket path traversal via symlinks, Windows backslashes, and direct-bucket keys` (commit `5edf982bf0`)
Versiones

Rangos afectados

Afectada Corregida Última
surrealdb< 4.0.0
4.0.0
4.0.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
crates.iosurrealdb
Corregida 4.0.0 0 d 4.0.1 no afectada
Versiones corregidas4.0.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/surrealdb/surrealdb/security/advisories/GHSA-cph5-pm57-9w9c

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