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

GHSA-7PQW-X84X-FRXC

Filesystem Bucket Containment Fails to Resolve Descendant Symlinks

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.
Ojo de llama: esto puede escalar.Saqué la lupa: aquí hay algo que investigar.
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-7PQW-X84X-FRXC 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 symbolic link traversal vulnerability exists in SurrealDB's filesystem storage bucket (`surrealdb/surrealdb`). In `surrealdb/core/src/buc/store/file.rs`, containment assertions only canonicalize the bucket root rather than resolving descendant symlinks.

### Vulnerability Details
- Affected File: `surrealdb/core/src/buc/store/file.rs` (`to_os_path`, `get`, `put`, `copy`, `rename`, `list`)
- Mechanism: The security assertion checks `path.starts_with(&self.root)` using lexical comparison. If the storage directory contains a pre-existing symbolic link pointing outside the bucket root (e.g. `<root>/link -> /etc`), requests referencing `/link/secret` satisfy the prefix check and allow arbitrary file reads and writes across the host filesystem.
- Impact: Host filesystem disclosure and modification via symlink navigation.

### Recommended Remediation
Fully canonicalize the final target path using `std::fs::canonicalize()` and verify that the canonical path resides within the canonical bucket root.

---
Reported by: ARSB

Patches

A patch has been created that canonicalizes the deepest existing ancestor of a filesystem bucket key and re-checks it against the canonical root, so an in-bucket symlink can no longer redirect an operation outside the bucket root.

  • 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-7pqw-x84x-frxc

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