CVE-2025-71394: SurrealDB before 2.2.2 Local File Read via DEFINE ANALYZER
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.
Security readout for executives and security teams
Plain-English summary
An authenticated SurrealDB user with root, namespace, or database privileges may abuse analyzer configuration to read files accessible to the database service. Practical extraction is limited to files formatted as two-column, tab-separated data. The low severity reflects required privileges, file-format constraints, and confidentiality-only impact.
Executive priority
Schedule remediation through normal vulnerability management rather than emergency response. Prioritize internet-accessible or multi-tenant deployments and environments where non-administrators have database-level privileges or the SurrealDB process can read sensitive files. Escalate if suspicious analyzer changes or privileged-account compromise is discovered.
Technical view
CVE-2025-71394 is a CWE-22 local file-read flaw in DEFINE ANALYZER affecting SurrealDB before 2.2.2. A privileged authenticated user can direct an analyzer to an arbitrary filesystem path and potentially retrieve compatible file contents. CVSS 4.0 is 2.3; no integrity, availability, or downstream-system impact is identified.
Likely exposure
Exposure primarily exists where untrusted or insufficiently trusted users hold root, namespace, or database-level SurrealDB privileges. Risk also depends on files readable by the SurrealDB process and whether their contents match the exploitable two-column tab-separated format.
Exploitation context
The supplied sources do not report active exploitation, and the CVE is not identified as KEV. Exploitation requires authentication, elevated SurrealDB privileges, and particular file-format conditions. It is therefore more relevant to insider threats, compromised privileged accounts, or overly broad database access than anonymous attacks.
Researcher notes
The bundle identifies DEFINE ANALYZER path handling as the vulnerable surface and notes extraction constraints for two-column tab-separated files. Its structured affected-version entries are internally ambiguous, including differing upper bounds and default-unaffected labels. The title, description, and advisory reference consistently identify versions before 2.2.2; confirm branch-specific applicability with the vendor advisory.
Mitigation direction
Upgrade SurrealDB to version 2.2.2 or later.
Review vendor guidance before applying changes in production.
Restrict root, namespace, and database-level privileges to trusted administrators.
Limit the SurrealDB service account's filesystem read permissions.
Investigate unnecessary or unexpected DEFINE ANALYZER changes.
Validation and detection
Inventory SurrealDB instances and record their exact versions.
Confirm every instance is running version 2.2.2 or later.
Review accounts holding root, namespace, or database-level privileges.
Audit analyzer definitions for unexpected filesystem paths.
Verify the SurrealDB process cannot read unrelated sensitive files.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-22: File access and web shell behavior lookup
File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references database injection or access, so collection and exfiltration review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-22 · source CWE mapping
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.