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

- Severity: Low 2.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2025-04-10T21:08:50.000Z
- Modified: 2026-10-29T21:17:06.060Z
- Also known as: GHSA-2cvj-g5r5-jrrg
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- surrealdb surrealdb: from 2.2.0 before 2.2.2; before 2.1.5 (not affected: 2.2.2; 2.1.5)
- surrealdb (crates.io): from 2.2.0 before 2.2.2; before 2.1.5

## Every score

- VulnCheck: CVSS:4.0 2.3 Low `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`
- GitHub: CVSS:4.0 Low `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`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/surrealdb/surrealdb/security/advisories/GHSA-2cvj-g5r5-jrrg> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/surrealdb-before-local-file-read-via-define-analyzer> (third-party-advisory)
- <https://github.com/surrealdb/surrealdb/pull/5600> (web)
- <https://github.com/surrealdb/surrealdb> (package)

## Sources

- CVE List: [CVE-2025-71394](https://www.cve.org/CVERecord?id=CVE-2025-71394), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-2cvj-g5r5-jrrg](https://github.com/advisories/GHSA-2cvj-g5r5-jrrg), CC-BY-4.0, modified 2026-07-19
- NVD: [CVE-2025-71394](https://nvd.nist.gov/vuln/detail/CVE-2025-71394), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2025-71394 · Whole record: https://cve.day/CVE-2025-71394.json · Rebuilt by cve.day 2026-11-25T22:59:12.404Z
