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.
Published: 2026-07-18
Score: 2.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SurrealDB database versions prior to 2.2.2 contain a local file read vulnerability in the DEFINE ANALYZER statement. Authenticated users who possess sufficient privileges—root, namespace, or database level—can create an analyzer that points to an arbitrary file path. When the analyzer processes a two‑column tab‑separated file, the content of the referenced file is exfiltrated, allowing the attacker to read local files on the system.

Affected Systems

All SurrealDB installations running a version before 2.2.2 are affected. This includes any release such as 2.2.1 and earlier. The vulnerability is vendor‑specific to SurrealDB and is tied to the database schema for analyzer definitions and file handling.

Risk and Exploitability

The CVSS score of 2.3 reflects a low severity impact limited to authenticated users. The EPSS score is below 1%, indicating a low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Attackers without authentication cannot exploit the flaw; the likely local and requires privileged access to the database. An attacker who already has a legitimate authenticated session could read sensitive configuration or application files that reside on the same filesystem as the SurrealDB instance.

Generated by OpenCVE AI on July 30, 2026 at 23:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 2.2.2 or later to remove the file read flaw
  • Restrict the use of DEFINE ANALYZER to users with the minimum required privileges and audit privilege assignments
  • Monitor database logs for anomalous analyzer definitions and consider disabling analyzer functionality if it is not needed for application operation

Generated by OpenCVE AI on July 30, 2026 at 23:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 02:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb

Mon, 20 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 18 Jul 2026 13:45:00 +0000

Type Values Removed Values Added
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.
Title SurrealDB before 2.2.2 Local File Read via DEFINE ANALYZER
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 2.3, 'vector': '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'}


Subscriptions

Surrealdb Surrealdb
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:48:17.603Z

Reserved: 2026-07-16T12:14:41.770Z

Link: CVE-2025-71394

cve-icon Vulnrichment

Updated: 2026-07-20T19:23:35.415Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T23:15:06Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')