LiveActive security incident?Get immediate response
CVE Record

CVE-2025-71394: SurrealDB before 2.2.2 Local File Read via DEFINE ANALYZER

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.

LowCVSS 2.3Not KEV-listedUpdated
Glexia's TakeAutomated analysislow

Security readout for executives and security teams

Plain-English summary

An authenticated SurrealDB user with root, namespace, or database privileges may abuse analyzer configuration to read files accessible to the database service. Practical extraction is limited to files formatted as two-column, tab-separated data. The low severity reflects required privileges, file-format constraints, and confidentiality-only impact.

Executive priority

Schedule remediation through normal vulnerability management rather than emergency response. Prioritize internet-accessible or multi-tenant deployments and environments where non-administrators have database-level privileges or the SurrealDB process can read sensitive files. Escalate if suspicious analyzer changes or privileged-account compromise is discovered.

Technical view

CVE-2025-71394 is a CWE-22 local file-read flaw in DEFINE ANALYZER affecting SurrealDB before 2.2.2. A privileged authenticated user can direct an analyzer to an arbitrary filesystem path and potentially retrieve compatible file contents. CVSS 4.0 is 2.3; no integrity, availability, or downstream-system impact is identified.

Likely exposure

Exposure primarily exists where untrusted or insufficiently trusted users hold root, namespace, or database-level SurrealDB privileges. Risk also depends on files readable by the SurrealDB process and whether their contents match the exploitable two-column tab-separated format.

Exploitation context

The supplied sources do not report active exploitation, and the CVE is not identified as KEV. Exploitation requires authentication, elevated SurrealDB privileges, and particular file-format conditions. It is therefore more relevant to insider threats, compromised privileged accounts, or overly broad database access than anonymous attacks.

Researcher notes

The bundle identifies DEFINE ANALYZER path handling as the vulnerable surface and notes extraction constraints for two-column tab-separated files. Its structured affected-version entries are internally ambiguous, including differing upper bounds and default-unaffected labels. The title, description, and advisory reference consistently identify versions before 2.2.2; confirm branch-specific applicability with the vendor advisory.

Mitigation direction

  • Upgrade SurrealDB to version 2.2.2 or later.
  • Review vendor guidance before applying changes in production.
  • Restrict root, namespace, and database-level privileges to trusted administrators.
  • Limit the SurrealDB service account's filesystem read permissions.
  • Investigate unnecessary or unexpected DEFINE ANALYZER changes.

Validation and detection

  • Inventory SurrealDB instances and record their exact versions.
  • Confirm every instance is running version 2.2.2 or later.
  • Review accounts holding root, namespace, or database-level privileges.
  • Audit analyzer definitions for unexpected filesystem paths.
  • Verify the SurrealDB process cannot read unrelated sensitive files.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-22: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Database behavior lookup

The CVE wording references database injection or access, so collection and exfiltration review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2025-71394 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Low
CVSS
2.3 (4.0)
Known Exploited
No
Published

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
3Timeline events
1ADP providers
3Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
2.3CVSS 4.0LowCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NVulnCheck

Vulnerability scoring details

Base CVSS 4.0 score

2.3Low
CVSS 4.0 vector shape for CVE-2025-71394Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
surrealdbsurrealdb0, 2.2.2unaffected
surrealdbsurrealdb0, 2.1.5unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-22 · source CWE mapping

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

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.