PatchSiren cyber security CVE debrief
CVE-2025-71392 surrealdb CVE debrief
CVE-2025-71392 is a critical vulnerability in SurrealDB, a database management system. The vulnerability allows an authenticated System User with OWNER or EDITOR roles to create tables or fields with malicious names containing SurrealQL, which can be executed when a higher-privileged user imports the exported backup, enabling privilege escalation and root-level takeover of the SurrealDB instance.
- Vendor
- surrealdb
- Product
- Unknown
- CVSS
- CRITICAL 9.4
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-18
- Original CVE updated
- 2026-10-08
- Advisory published
- 2026-07-18
- Advisory updated
- 2026-10-08
Who should care
Defenders responsible for managing SurrealDB instances should assess exposure and prioritize patching to prevent potential privilege escalation attacks. 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
CVE-2025-71392 is a critical vulnerability in SurrealDB that allows privilege escalation and root-level takeover of the SurrealDB instance. Defenders should prioritize patching SurrealDB instances and monitor for suspicious activity.
- Privilege escalation to root-level takeover of the SurrealDB instance
- Potential for universal second-order SurrealQL injection in applications that let users define custom tables or fields
- Need for patching SurrealDB instances to prevent potential attacks
- Importance of monitoring SurrealDB instances for suspicious activity
Technical 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.
Defensive priority
Defenders should prioritize patching SurrealDB instances to prevent potential privilege escalation attacks.
Recommended defensive actions
- Patch SurrealDB instances to version 2.0.5, 2.1.5, or 2.2.2
- Restrict access to SurrealDB instances to only trusted users
- Monitor SurrealDB instances for suspicious activity
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The vulnerability is caused by SurrealDB's failure to properly escape table and field names in the command-line export command. This allows an authenticated System User with OWNER or EDITOR roles to create tables or fields with malicious names containing SurrealQL.
Sources and references
Verified primary and authoritative sources
-
CVE-2025-71392 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2025-71392
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2025-71392 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2025-71392
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/surrealdb/surrealdb/security/advisories/GHSA-ccj3-5p93-8p42
[email protected] - Vendor Advisory
-
Source reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/surrealdb-before-surrealql-injection-via-export
[email protected] - Third Party Advisory
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.