Read the docs
TI-2025-43508 Aliases CVE-2025-71392GHSA-ccj3-5p93-8p42

SurrealDB before 2.2.2 SurrealQL Injection via export

Priority MEDIUM 43CWE-77Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-77.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00442 38th percentileScored 2026-11-07
Fix Fixed surrealdb (surrealdb): 2.2.2, 2.1.5, 2.0.5surrealdb (crates.io): 2.2.2, 2.1.5, 2.0.5

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
surrealdbsurrealdb2.2.0 to before 2.2.22.2.2Patch availableCNA
surrealdbsurrealdb2.1.0 to before 2.1.52.1.5Patch availableCNA
surrealdbsurrealdbbefore 2.0.52.0.5Patch availableCNA
—surrealdb (crates.io)2.2.0 to before 2.2.22.2.2Patch availableGHSA-ccj3-5p93-8p42
—surrealdb (crates.io)2.1.0 to before 2.1.52.1.5Patch availableGHSA-ccj3-5p93-8p42
—surrealdb (crates.io)before 2.0.52.0.5Patch availableGHSA-ccj3-5p93-8p42
  • surrealdb Vendorsurrealdb Affected 2.2.0 to before 2.2.2 Fixed in 2.2.2 Patch available CNA
  • surrealdb Vendorsurrealdb Affected 2.1.0 to before 2.1.5 Fixed in 2.1.5 Patch available CNA
  • surrealdb Vendorsurrealdb Affected before 2.0.5 Fixed in 2.0.5 Patch available CNA
  • surrealdb (crates.io) Vendor— Affected 2.2.0 to before 2.2.2 Fixed in 2.2.2 Patch available GHSA-ccj3-5p93-8p42
  • surrealdb (crates.io) Vendor— Affected 2.1.0 to before 2.1.5 Fixed in 2.1.5 Patch available GHSA-ccj3-5p93-8p42
  • surrealdb (crates.io) Vendor— Affected before 2.0.5 Fixed in 2.0.5 Patch available GHSA-ccj3-5p93-8p42

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*before 2.0.5; 2.1.0 to before 2.1.5; 2.2.0 to before 2.2.2Vulnerablesurrealdb
  • cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:* Versions before 2.0.5; 2.1.0 to before 2.1.5; 2.2.0 to before 2.2.2 Vulnerable ·surrealdb

Remediation

  • Fix · CNA surrealdb (surrealdb) Fixed in 2.2.2
  • Fix · CNA surrealdb (surrealdb) Fixed in 2.1.5
  • Fix · CNA surrealdb (surrealdb) Fixed in 2.0.5
  • Fix · GHSA-ccj3-5p93-8p42 surrealdb (crates.io) Fixed in 2.2.2 Advisory →
  • Fix · GHSA-ccj3-5p93-8p42 surrealdb (crates.io) Fixed in 2.1.5 Advisory →
  • Fix · GHSA-ccj3-5p93-8p42 surrealdb (crates.io) Fixed in 2.0.5 Advisory →

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    surrealdb 2.1.5, 2.2.2

    8 records Highest priority Priority MEDIUM 1 MEDIUM, 7 LOW

    Other records, highest priority first

    • TI-2025-43513 SurrealDB before 2.2.2 CPU Exhaustion via nested FOR loopsPriority LOW 32
    • TI-2025-43511 SurrealDB before 2.2.2 Memory Exhaustion via string::replacePriority LOW 32
    • TI-2025-43507 SurrealDB before 2.2.2 Denial of Service via /sql endpointPriority LOW 32
  • Release ·

    surrealdb 2.0.5

    7 records Highest priority Priority MEDIUM 1 MEDIUM, 6 LOW

    Other records, highest priority first

    • TI-2025-43513 SurrealDB before 2.2.2 CPU Exhaustion via nested FOR loopsPriority LOW 32
    • TI-2025-43511 SurrealDB before 2.2.2 Memory Exhaustion via string::replacePriority LOW 32
    • TI-2025-43507 SurrealDB before 2.2.2 Denial of Service via /sql endpointPriority LOW 32

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-71392
  2. 2026-10-03 Alias added: GHSA-ccj3-5p93-8p42
  3. 2026-10-29 Affected versions changed · CNA

References

  • TI-2026-45344 SurrealDB before 3.1.0 Session Hijacking via /rpc sessions CVSS 4.0HIGH 8.7
  • TI-2024-38452 SurrealDB before 1.1.0 Denial of Service via HTTP Headers CVSS 4.0HIGH 8.7
  • TI-2026-45347 SurrealDB before 3.1.0 Denial of Service via JSON Parser CVSS 4.0HIGH 8.7
  • TI-2026-45334 SurrealDB before 3.1.0 Denial of Service via malformed RPC use CVSS 4.0HIGH 8.7
  • TI-2026-45343 SurrealDB before 3.1.0 Privilege Escalation via RPC Session Race Condition CVSS 4.0CRITICAL 9.2
  • TI-2024-38450 SurrealDB before 1.1.1 Format String via Scripting Functions CVSS 4.0CRITICAL 9.0
See all 54 →

Sources