CVE-2026-63739
Received Received - Intake

SurrealDB Arbitrary File Read via DEFINE ANALYZER

Vulnerability report for CVE-2026-63739, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-20

Last updated on: 2026-07-20

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-20
Last Modified
2026-07-20
Generated
2026-07-21
AI Q&A
2026-07-20
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
surrealdb surrealdb to 3.1.5 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

SurrealDB before version 3.1.5 has an arbitrary file read vulnerability in the DEFINE ANALYZER mapper filter. Users with EDITOR or OWNER roles can read files accessible to the SurrealDB process by specifying arbitrary file paths in the mapper filter. This works when the SURREAL_FILE_ALLOWLIST is empty or not configured, allowing attackers to retrieve file contents through query error messages.

Detection Guidance

To detect this vulnerability, check SurrealDB versions before 3.1.5. Use commands like 'surreal version' or inspect package managers for outdated installations. Monitor logs for DEFINE ANALYZER queries with file paths in mapper filters.

Impact Analysis

This vulnerability can expose sensitive data such as startup credentials or environment variables. Attackers can read files accessible to the SurrealDB process, potentially leading to privilege escalation or further system compromise. The impact depends on the filesystem access of the SurrealDB process.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating compliance requirements under GDPR and HIPAA. Exposure of personal or health data may result in legal penalties, reputational damage, and loss of trust.

Mitigation Strategies

Upgrade SurrealDB to version 3.1.5 or later. Configure SURREAL_FILE_ALLOWLIST to restrict file access. Limit permissions for EDITOR and OWNER roles. Avoid storing secrets in command-line arguments.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-63739. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart