CVE-2025-71392CWE-77command-injection

CVE-2025-71392

High · published July 18, 2026

CVSS v3.1
8.0
EPSS
0%
Percentile
37.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.0 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00442 · 37.4th percentile
Weakness
CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
Published
2026-07-18T18:17Z
Affected products (3)
ProductVersionsFixed in
surrealdb/surrealdb< 2.0.52.0.5
surrealdb/surrealdb≥ 2.1.0, < 2.1.52.1.5
surrealdb/surrealdb≥ 2.2.0, < 2.2.22.2.2
References (2)
EPSS history
Timeline
  • 18 JUL 13:10Z
    SurrealDB before 2.2.2 SurrealQL Injection via export
    cvelistv5