Skip to main content
VulnerabilityPublished Updated

CVE-2025-71392: surrealdb · Command Injection

Affects surrealdbSource CVE Database V5

0
Compare

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

Data as of 29 Oct 2026, 21:45 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
CISA SSVC
Exploitation
No evidence of active exploitation and no public proof of concept
Automatable
Attackers cannot reliably automate steps 1–4 of the kill chain
Technical impact
Total control over the software or total information disclosure

CISA SSVC assessment, 2026-07-21.

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 29 Oct 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
surrealdbsurrealdbAffected
  • >=2.2.0 <2.2.2
Fixed in
  • 2.2.2
surrealdbsurrealdbAffected
  • >=2.1.0 <2.1.5
Fixed in
  • 2.1.5
surrealdbsurrealdbAffected
  • <2.0.5
Fixed in
  • 2.0.5
crates.iosurrealdbpkg:cargo/surrealdbOther threatsAffected
  • >=2.2.0 <2.2.2
  • >=2.1.0 <2.1.5
  • <2.0.5
Fixed in
  • 2.2.2
  • 2.1.5
  • 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 fix is available in SurrealDB versions 2.0.5, 2.1.5, and 2.2.2. Users should upgrade to these or later versions to remediate the vulnerability. No additional mitigation steps are indicated beyond applying the official patches.

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.

References

Community reviews

Loading reviews…