{"cve":"CVE-2025-71392","nvd":{"published":"2026-07-18T14:17:10.580","modified":"2026-10-29T21:17:05.793","status":"Analyzed","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.","cvss_v4":{"vector":"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","score":9.4},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":8.0},"cwes":["CWE-77"],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-ccj3-5p93-8p42","https://www.vulncheck.com/advisories/surrealdb-before-surrealql-injection-via-export"],"products":["surrealdb:surrealdb"],"source":"nvd","synced_at":"2026-10-29T21:36:56.436249234+00:00"},"epss":{"cve":"CVE-2025-71392","score":0.00442,"percentile":0.38392,"date":"2026-10-29"},"kev":null,"osv":[{"id":"GHSA-ccj3-5p93-8p42","url":"https://osv.dev/vulnerability/GHSA-ccj3-5p93-8p42","summary":"SurrealDB server-takeover via SurrealQL injection on backup import","modified":"2026-09-04T19:45:06.333410576Z","packages":[{"ecosystem":"crates.io","name":"surrealdb","purl":"pkg:cargo/surrealdb","ranges":[">=2.2.0 <2.2.2"],"fixed":["2.2.2"]},{"ecosystem":"crates.io","name":"surrealdb","purl":"pkg:cargo/surrealdb","ranges":[">=2.1.0 <2.1.5"],"fixed":["2.1.5"]},{"ecosystem":"crates.io","name":"surrealdb","purl":"pkg:cargo/surrealdb","ranges":["<2.0.5"],"fixed":["2.0.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}