Security mailing lists by PureSourceCode

CVE-2025-71392

CRITICAL 9.4CVSS 4.0

SurrealDB server-takeover via SurrealQL injection on backup import

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
18 Jul 2026
Last modified
29 Oct 2026
Assigned by
disclosure@vulncheck.com
NVD status
Analyzed
Weakness
CWE-77
Also known as
GHSA-ccj3-5p93-8p42
Sources
NVDJSONOSV GHSA-ccj3-5p93-8p42JSON

Scores

SourceScored byVersionScoreVector / decision
NVD disclosure@vulncheck.com (Secondary) CVSS 4.0 CRITICAL 9.4 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 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
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.0 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD surrealdb surrealdb
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
< 2.0.5 2.0.5
NVD surrealdb surrealdb
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
>= 2.1.0, < 2.1.5 2.1.5
NVD surrealdb surrealdb
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
>= 2.2.0, < 2.2.2 2.2.2
OSV crates.io surrealdb >= 2.2.0, < 2.2.2 2.2.2
OSV crates.io surrealdb >= 2.1.0, < 2.1.5 2.1.5
OSV crates.io surrealdb < 2.0.5 2.0.5

References

History

  • 25 Nov 2026 21:03 UTC · NVD: first stored (published 18 Jul 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Apr 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.