CVE-2025-71394
2.3
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Summary
SurrealDB versions before 2.2.2 contain a local file read vulnerability in the DEFINE ANALYZER statement that allows authenticated users to read arbitrary files on the file system. Attackers with root, namespace, or database level privileges can point analyzers to arbitrary file paths and exfiltrate content from two-column tab-separated files.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| surrealdb | surrealdb | 0 < 2.2.2 | affected |
| surrealdb | surrealdb | 2.2.2 | unaffected |
| surrealdb | surrealdb | 0 < 2.1.5 | affected |
| surrealdb | surrealdb | 2.1.5 | unaffected |
Weaknesses
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-2cvj-g5r5-jrrg
- https://www.vulncheck.com/advisories/surrealdb-before-local-file-read-via-define-analyzer
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.