Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-71392— SurrealDB before 2.2.2 SurrealQL Injection via export

Quick assessment

Affected
surrealdb surrealdb
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

surrealdb是SurrealDB公司开源的一个文档图数据库。 SurrealDB 2.0.5之前版本、2.1.x 2.1.5之前版本和2.2.x 2.2.2之前版本存在命令注入漏洞,该漏洞源于对命令行导出命令中表和字段名称的转义处理不当,可能导致经过身份验证的具有OWNER或EDITOR角色的系统用户创建包含恶意SurrealQL名称的表或字段,当更高权限用户导入导出的备份时,注入的SurrealQL被执行,实现权限提升并完全控制SurrealDB实例。

CVSS 9.4 · Critical EPSS 0.44% · P36

Affected Version Matrix 6

VendorProduct Version RangeStatus
surrealdb surrealdb < 2.2.2 affected
2.2.2 unaffected
< 2.1.5 affected
2.1.5 unaffected
< 2.0.5 affected
2.0.5 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-71392

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
SurrealDB before 2.2.2 SurrealQL Injection via export
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
在命令中使用的特殊元素转义处理不恰当(命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
SurrealDB 命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
surrealdb是SurrealDB公司开源的一个文档图数据库。 SurrealDB 2.0.5之前版本、2.1.x 2.1.5之前版本和2.2.x 2.2.2之前版本存在命令注入漏洞,该漏洞源于对命令行导出命令中表和字段名称的转义处理不当,可能导致经过身份验证的具有OWNER或EDITOR角色的系统用户创建包含恶意SurrealQL名称的表或字段,当更高权限用户导入导出的备份时,注入的SurrealQL被执行,实现权限提升并完全控制SurrealDB实例。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
surrealdb surrealdb 0 ~ 2.2.2 -
surrealdb surrealdb 0 ~ 2.1.5 -
surrealdb surrealdb 0 ~ 2.0.5 -

II. Public POCs for CVE-2025-71392

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 5727 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2025-71392

请登录查看更多情报信息。

Vendor Advisories for CVE-2025-71392 (1)

Other References for CVE-2025-71392 (1)

Same Patch Batch · surrealdb · 2026-07-18 · 24 CVEs total

CVE-2024-58362 8.8 HIGH SurrealDB before 1.5.5 Query Injection via RPC API
CVE-2023-54366 8.8 HIGH SurrealDB before 1.0.1 Insecure Default Table Permissions
CVE-2024-58366 8.5 HIGH SurrealDB before 1.1.1 Format String via Scripting Functions
CVE-2024-58368 7.5 HIGH SurrealDB before 1.1.0 Denial of Service via HTTP Headers
CVE-2025-71395 7.1 HIGH SurrealDB before 2.2.2 Memory Exhaustion via string::replace
CVE-2025-71397 7.1 HIGH SurrealDB before 2.2.2 CPU Exhaustion via nested FOR loops
CVE-2025-71391 7.1 HIGH SurrealDB before 2.2.2 Denial of Service via /sql endpoint
CVE-2024-58367 7.1 HIGH SurrealDB before 2.0.4 Improper Authorization via SELECT Permissions
CVE-2024-58365 6.5 MEDIUM SurrealDB before 1.2.0 Denial of Service via Nonexistent Function
CVE-2024-58369 6.5 MEDIUM SurrealDB before 1.1.1 Denial of Service via Global Parameters
CVE-2024-58361 6.5 MEDIUM SurrealDB before 2.0.4 Denial of Service via Parser Exception
CVE-2024-58370 6.5 MEDIUM SurrealDB before 1.1.0 Uncontrolled Recursion Denial of Service
CVE-2024-58357 6.5 MEDIUM SurrealDB before 2.1.0 Denial of Service via rand::time()
CVE-2024-58359 6.5 MEDIUM SurrealDB before 2.1.0 Denial of Service via rand() Sorting
CVE-2024-58364 6.5 MEDIUM SurrealDB before 1.2.1 Denial of Service via Parsing Error
CVE-2024-58363 6.3 MEDIUM SurrealDB before 1.5.4 Authentication Bypass via Database Switch
CVE-2025-71393 6.0 MEDIUM SurrealDB before 2.2.2 Memory Exhaustion via Nested Functions
CVE-2025-71398 5.8 MEDIUM SurrealDB before 2.2.2 SSRF via HTTP Redirect Bypass
CVE-2025-71390 5.8 MEDIUM SurrealDB before 2.3.6 deny-net Bypass via DNS Resolution
CVE-2024-58358 4.9 MEDIUM SurrealDB before 2.1.0 Denial of Service via Nonexistent Role

Showing top 20 of 24 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2025-71392

No comments yet


Leave a comment