SurrealDB versions before 2.2.2 contain a local file read vulnerability in the DEFINE ANALYZER statement that allows authenticated users to read… (CVE-2025-71394)
SurrealDB versions before 2.2.2 have a local file read vulnerability in the DEFINE ANALYZER statement. Authenticated users with root, namespace, or database privileges can exploit this flaw to read arbitrary files on the file system, specifically targeting two-column tab-separated files. The vulnerability is identified as CVE-2025-71394 and has a low severity rating with a CVSS score of 4.3.
AI Analysis
Technical Summary
CVE-2025-71394 affects SurrealDB versions prior to 2.2.2 and allows authenticated users with sufficient privileges (root, namespace, or database level) to exploit a local file read vulnerability via the DEFINE ANALYZER statement. This flaw enables attackers to specify arbitrary file paths, leading to exfiltration of content from two-column tab-separated files on the underlying file system. The vulnerability is classified under CWE-22 (Improper Limitation of a Pathname to a Restricted Directory).
Potential Impact
The vulnerability allows unauthorized reading of arbitrary files by authenticated users with elevated privileges, potentially exposing sensitive data stored in two-column tab-separated files. There is no indication of impact on integrity or availability. The CVSS score of 4.3 reflects a low severity impact limited to confidentiality.
Mitigation Recommendations
A fix is available in SurrealDB version 2.2.2. Users should upgrade to version 2.2.2 or later to remediate this vulnerability. No additional mitigation guidance is provided or required beyond applying the official fix.
SurrealDB versions before 2.2.2 contain a local file read vulnerability in the DEFINE ANALYZER statement that allows authenticated users to read… (CVE-2025-71394)
Description
SurrealDB versions before 2.2.2 have a local file read vulnerability in the DEFINE ANALYZER statement. Authenticated users with root, namespace, or database privileges can exploit this flaw to read arbitrary files on the file system, specifically targeting two-column tab-separated files. The vulnerability is identified as CVE-2025-71394 and has a low severity rating with a CVSS score of 4.3.
CVSS v3.1
Score 4.3medium
Affected software
pkg:github/surrealdb/surrealdbRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-71394 affects SurrealDB versions prior to 2.2.2 and allows authenticated users with sufficient privileges (root, namespace, or database level) to exploit a local file read vulnerability via the DEFINE ANALYZER statement. This flaw enables attackers to specify arbitrary file paths, leading to exfiltration of content from two-column tab-separated files on the underlying file system. The vulnerability is classified under CWE-22 (Improper Limitation of a Pathname to a Restricted Directory).
Potential Impact
The vulnerability allows unauthorized reading of arbitrary files by authenticated users with elevated privileges, potentially exposing sensitive data stored in two-column tab-separated files. There is no indication of impact on integrity or availability. The CVSS score of 4.3 reflects a low severity impact limited to confidentiality.
Mitigation Recommendations
A fix is available in SurrealDB version 2.2.2. Users should upgrade to version 2.2.2 or later to remediate this vulnerability. No additional mitigation guidance is provided or required beyond applying the official fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-627h-wprw-6cpg
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-71394"]
- Ecosystems
- []
- Database Specific Severity
- LOW
- Cvss Version
- 4.0
Threat ID: 6a5ba17e44ab8fbf7c789bb3
Added to database: 07/18/2026, 15:53:34 UTC
Last enriched: 08/13/2026, 19:15:38 UTC
Last updated: 08/29/2026, 22:52:08 UTC
Views: 129
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.