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

GHSA-2CVJ-G5R5-JRRG

SurrealDB has local file read of 2-column TSV files via analyzers

Parche disponible
Descargar PNG JSON
CVSS
—
low
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche el mismo día de la divulgación
Exposición588 dDesde la divulgación, 10 abr 2025, 4:08 p. m.
Detección585 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 2.1.5 +1
Monitoreo
Detectada
10 abr 25
19 jul 26
17 nov 26
19 nov 26
10 abr 25
4 sept 25
29 ene 26
25 jun 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-2CVJ-G5R5-JRRG divulgada
Remediación Parche 2.1.5 surrealdb · 0 d desde divulgación
Remediación Parche 2.2.2 surrealdb · 0 d desde divulgación
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

An authenticated system user at the root, namespace, or database levels can use the `DEFINE ANALYZER` statement to point to arbitrary file locations on the file system, and should the file be tab separated with two columns, the analyzer can be leveraged to exfiltrate the content.

This issue was discovered and patched during an code audit and penetration test of SurrealDB by cure53, the severity defined within cure53's preliminary finding is Low, matched by our CVSS v4 assessment.

### Impact
Limited to unauthorised access to 2 column TSV files on the file system

### Patches
A patch has been created that introduces a new environment variable, `SURREAL_FILE_ALLOWLIST` , which contains a list of allowed file paths. When a mapping file is processed, the mapper checks if the file’s path is within one of the allowed paths.

  • Versions 2.1.5, 2.2.2 and later are not affected by this issue.

### Workarounds
Users unable to update may want to limit those with root, namespace, or database level users to trusted parties only.

### References
SurrealQL Documentation - DEFINE ANALYZER https://surrealdb.com/docs/surrealql/statements/define/analyzer#define-analyzer-statement
#5600 https://github.com/surrealdb/surrealdb/pull/5600

Versiones

Rangos afectados

Afectada Corregida Última
surrealdb< 2.1.5
surrealdb≥ 2.2.0 < 2.2.2
2.1.5
2.2.0
2.2.2
4.0.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
crates.iosurrealdb
Corregida 2.1.5, 2.2.2 0 d · 0 d 4.0.1 no afectada
Versiones corregidas2.1.52.2.2
Explotación

Arsenal público

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

Referencias
Otrahttps://github.com/surrealdb/surrealdb/security/advisories/GHSA-2cvj-g5r5-jrrg
Otrahttps://github.com/surrealdb/surrealdb/pull/5600
Otrahttps://github.com/surrealdb/surrealdb

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