CVE-2025-71394

SurrealDB before 2.2.2 Local File Read via DEFINE ANALYZER

Published Jul 18, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:15 PM
Reserved
Jul 16, 2026, 12:14 PM
Status
Analyzed
Published
Jul 18, 2026, 2:17 PM
Modified
Oct 29, 2026, 9:17 PM