Description
SurrealDB before 3.1.5 contains an arbitrary file read vulnerability in the DEFINE ANALYZER mapper filter that allows database users with EDITOR or OWNER roles to read files accessible to the SurrealDB process. Attackers can specify arbitrary file paths in the mapper filter and retrieve file contents through query error messages when the SURREAL_FILE_ALLOWLIST is empty or not configured.
Published: 2026-07-20
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SurrealDB prior to version 3.1.5 has a flaw in the DEFINE ANALYZER mapper filter that allows database users holding EDITOR or OWNER roles to read files accessible to the SurrealDB process. By specifying arbitrary file paths in the mapper filter, such users can obtain file contents through query error messages when the SURREAL_FILE_ALLOWLIST is empty or not configured. This results in an unauthorized disclosure of local files and can lead to the compromise of sensitive data held on the host machine.

Affected Systems

The affected product is SurrealDB from the vendor surrealdb, for all releases before 3.1.5. Any deployment running these versions is vulnerable unless a later update is applied.

Risk and Exploitability

The CVSS score of 8.3 indicates a high severity vulnerability. The EPSS score of 0.35% indicates a very low but nonzero exploitation probability, and the lack of a CISA KEV listing does not diminish the need for remediation. The attack vector is inferred to be remote, as an attacker can authenticate as a user with EDITOR or OWNER privileges to trigger the file‑read behavior. Exploitation requires only that the SurrealDB process has file system‑level access, consequently the risk of exploitation is significant for any misconfigured or poorly role‑managed instance.

Generated by OpenCVE AI on July 30, 2026 at 19:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 3.1.5 or newer to apply the vendor fix.
  • Configure the SURREAL_FILE_ALLOWLIST environment variable to to an empty list only under controlled conditions.
  • Restrict usage of DEFINE ANALYZER to trusted roles and audit any existing analyzer definitions for unnecessary file paths.

Generated by OpenCVE AI on July 30, 2026 at 19:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 01: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 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 20 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description SurrealDB before 3.1.5 contains an arbitrary file read vulnerability in the DEFINE ANALYZER mapper filter that allows database users with EDITOR or OWNER roles to read files accessible to the SurrealDB process. Attackers can specify arbitrary file paths in the mapper filter and retrieve file contents through query error messages when the SURREAL_FILE_ALLOWLIST is empty or not configured.
Title SurrealDB before 3.1.5 Arbitrary File Read via DEFINE ANALYZER
Weaknesses CWE-22
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N'}


Subscriptions

Surrealdb Surrealdb
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:05:35.993Z

Reserved: 2026-07-18T12:19:06.903Z

Link: CVE-2026-63739

cve-icon Vulnrichment

Updated: 2026-07-20T16:05:20.832Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T19:45:06Z

Weaknesses
  • CWE-22

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