---
id: CVE-2025-71394
title: >-
  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
summary: >-
  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
  privil…
severity: none
cwe:
  - CWE-22
published: '2026-07-18'
updated: '2026-07-18'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-71394'
references:
  - url: >-
      https://github.com/surrealdb/surrealdb/security/advisories/GHSA-2cvj-g5r5-jrrg
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/surrealdb-before-local-file-read-via-define-analyzer
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-07-19T05:29:21.235Z'
epss: 0.00367
epssPercentile: 0.27877
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
