CVE-2025-71392
Source 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.
Published: 2026-07-18T14:17:10.580 · Modified: 2026-10-29T21:17:05.793
Products and platforms
surrealdb surrealdb — NVD affected-product configuration
Defensive action
Check the official advisory for affected versions and mitigation instructions. Patch availability is not established by the score.
Official sources
NVD record · CVE Program · FIRST EPSS methodology
Vendor advisory referenced by source
CVSS measures technical severity. EPSS estimates exploitation probability, not your individual exposure. A missing KEV listing is not proof of safety. Product configuration matches may include version and environment conditions.