Skip to main content
CVE-2025-71392VulnerabilityPublished Updated

Duplicate Advisory: SurrealDB server-takeover via SurrealQL injection on backup import

Affects surrealdbSource GCVE Database

0
Compare
Authoritative record:CVE-2025-71392· Critical 9.4

Not known to be exploited · CVSS 9.4 Critical : upgrade to 2.2.2 as a priority.

Data as of 30 Nov 2026, 18:36 UTC

CVSS 4.0 base score
9.4Critical
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.09.4
EPSS
0.4% chance of exploitation in 30 days – higher than 30% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.2.2, 2.1.5, 2.0.5
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.

What to do

Upgrade surrealdb to 2.2.2; surrealdb to 2.1.5; surrealdb to 2.0.5.

Affected software

ProductAffectedFixed in
crates.iosurrealdbpkg:cargo/surrealdbOther threatsAffected
  • >=2.2.0 <2.2.2
Fixed in
  • 2.2.2
crates.iosurrealdbpkg:cargo/surrealdbOther threatsAffected
  • >=2.1.0 <2.1.5
Fixed in
  • 2.1.5
crates.iosurrealdbpkg:cargo/surrealdbOther threatsAffected
  • <2.0.5
Fixed in
  • 2.0.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available for this vulnerability. Users should upgrade SurrealDB to versions 2.0.5 or later, 2.1.5 or later, and 2.2.2 or later to remediate this issue. Applying these official fixes will prevent SurrealQL injection via backup import. No additional mitigation steps are required if the patch is applied.

Description

SurrealDB versions before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 contain a SurrealQL injection vulnerability in the command-line export command. Authenticated users with OWNER or EDITOR roles can create malicious table or field names that inject SurrealQL code. When a higher-privileged user imports the backup, this injected code executes, allowing privilege escalation and root-level takeover of the SurrealDB instance. Applications permitting user-defined tables or fields are vulnerable to a universal second-order SurrealQL injection, even if query parameters are sanitized.

References

Community reviews

Loading reviews…