CVE-2026-63739

SurrealDB before 3.1.5 Arbitrary File Read via DEFINE ANALYZER

Published Jul 20, 2026 CVSS 4.0 · 8.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 28, 2026, 1:05 AM
Reserved
Jul 18, 2026, 12:19 PM
Status
Analyzed
Published
Jul 20, 2026, 12:19 PM
Modified
Jul 22, 2026, 3:49 PM