CVE-2026-63739 Details
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.
A vulnerability allowing arbitrary file read has been identified in SurrealDB versions prior to 3.1.5. This issue arises within the DEFINE ANALYZER mapper filter, where database users with EDITOR or OWNER roles can specify arbitrary file paths. The contents of these files are then returned through query error messages, exploiting the fact that the SURREAL_FILE_ALLOWLIST is either empty or not configured. The vulnerability allows access to any file the SurrealDB process can read, potentially disclosing sensitive information such as startup root credentials and secret environment variables.
Users are advised to upgrade to SurrealDB version 3.1.5 or later, where this vulnerability has been patched. For those unable to upgrade, it is recommended to set the SURREAL_FILE_ALLOWLIST to a directory containing only intended mapping files, grant EDITOR and OWNER roles only to trusted individuals, and avoid using secrets like root credentials through the command line or environment variables.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/surrealdb/surrealdb/security/advisories/GHSA-cc8f-fcx3-gpjr | [email protected] | Vendor AdvisoryMitigation |
| https://www.vulncheck.com/advisories/surrealdb-before-arbitrary-file-read-via-define-analyzer | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| surrealdb surrealdb | < 3.1.5 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | Initial Analysis | [email protected] |
| Jul 20, 2026 | CVE Modified | CISA-ADP |
| Jul 20, 2026 | New CVE Received | [email protected] |