CVE-2025-71394
published low CVSS 4.0 · 2.3SurrealDB before 2.2.2 Local File Read via DEFINE ANALYZER
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| surrealdb | — | surrealdb2.2.0 to < 2.2.2 (affected · semver) · 2.2.2 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| surrealdb | — | surrealdb0 to < 2.1.5 (affected · semver) · 2.1.5 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.3 / 10
- Severity
- low
- Provider
- VulnCheck · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| surrealdb | surrealdb | 2.2.0 to < 2.2.2 (affected · semver)2.2.2 (unaffected · semver)Default: unaffected | VulnCheck · cna |
| surrealdb | surrealdb | 0 to < 2.1.5 (affected · semver)2.1.5 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
2- GitHub Security Advisory (GHSA-2cvj-g5r5-jrrg) https://github.com/surrealdb/surrealdb/security/advisories/GHSA-2cvj-g5r5-jrrg
- VulnCheck Advisory: SurrealDB before 2.2.2 Local File Read via DEFINE ANALYZER https://www.vulncheck.com/advisories/surrealdb-before-local-file-read-via-define-analyzer
Provider assertions
2VulnCheck · cna
SurrealDB before 2.2.2 Local File Read via DEFINE ANALYZER
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8ae47c85d07f5f5add5516c48b569ce31c3f6d0c14fb2b193800d98ab892db73
- Ingested
- 29 Oct 2026, 21:17:51 UTC
- Source record
- Official CVE record