# CVE-2025-71392: SurrealDB before 2.2.2 SurrealQL Injection via export

- Severity: Critical 9.4 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- 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.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2025-04-11T14:07:34.000Z
- Modified: 2026-10-29T21:17:05.793Z
- Also known as: GHSA-ccj3-5p93-8p42
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 fails to properly escape table and field names in the command-line export command. An authenticated System User with OWNER or EDITOR roles can create tables or fields with malicious names containing SurrealQL. When a higher-privileged user subsequently imports the exported backup, the injected SurrealQL executes, enabling privilege escalation and root-level takeover of the SurrealDB instance. Applications that let users define custom tables or fields are also exposed to a universal second-order SurrealQL injection even when query parameters are sanitized.

(As written by CVE List.)

## Affected

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

## Every score

- VulnCheck: CVSS:4.0 9.4 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- NVD: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/surrealdb/surrealdb/security/advisories/GHSA-ccj3-5p93-8p42> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/surrealdb-before-surrealql-injection-via-export> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-71392> (advisory)
- <https://github.com/surrealdb/surrealdb> (package)

## Sources

- CVE List: [CVE-2025-71392](https://www.cve.org/CVERecord?id=CVE-2025-71392), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-ccj3-5p93-8p42](https://github.com/advisories/GHSA-ccj3-5p93-8p42), CC-BY-4.0, modified 2026-09-04
- NVD: [CVE-2025-71392](https://nvd.nist.gov/vuln/detail/CVE-2025-71392), Public domain, modified 2026-10-29

---

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