A AegiFlow
CRITICALCVSS 9.4EPSS 0.2%

CVE-2025-71392

CVE-2025-71392 updated by NVD

Published
2025-04-11
Modified
2026-10-31
EPSS percentile
15%
Sources
github-advisory, nvd

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.

Affected packages

EcosystemPackageAffected versionsFixed versions
rustsurrealdb—2.2.2, 2.1.5, 2.0.5

Remediation: Upgrade to 2.2.2 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

Includes data from the National Vulnerability Database (NIST). NVD data is in the public domain; this page is not endorsed by NIST.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.