Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Skip to content
Check your stack
CVE-2025-71392critical9.4

SurrealDB before 2.2.2 SurrealQL Injection via export

Impact

SurrealDB before 2.2.2 has a SurrealQL injection vulnerability via export, allowing an authenticated System User with OWNER or EDITOR roles to create tables or fields with malicious names, potentially enabling privilege escalation. The weakness is due to improper neutralization of special elements. Affected versions include 2.2.x before 2.2.2, 2.1.x before 2.1.5, and before 2.0.5.

Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.

Affected packages

This source has no supported package-version data for matching. You can read the advisory here, but this record alone cannot power a dependency check.

Affected products

Vendor version evidence. Product records are separate from automatic dependency matching.

surrealdb · VulnCheck

surrealdb

2 ranges

Package identity

pkg:cargo/surrealdbExplore surrealdb →

Identity supplied by VulnCheck. Version matching requires compatible range evidence.

Compare with this publisher’s ranges. This does not inspect your installation.

affected

2.2.0 → before 2.2.2

semver versions

unaffected

2.2.2

semver versions

unknown

Other versions: unaffected

surrealdb · VulnCheck

surrealdb

2 ranges

Package identity

pkg:cargo/surrealdbExplore surrealdb →

Identity supplied by VulnCheck. Version matching requires compatible range evidence.

Compare with this publisher’s ranges. This does not inspect your installation.

affected

2.1.0 → before 2.1.5

semver versions

unaffected

2.1.5

semver versions

unknown

Other versions: unaffected

surrealdb · VulnCheck

surrealdb

2 ranges

Package identity

pkg:cargo/surrealdbExplore surrealdb →

Identity supplied by VulnCheck. Version matching requires compatible range evidence.

Compare with this publisher’s ranges. This does not inspect your installation.

affected

0 → before 2.0.5

semver versions

unaffected

2.0.5

semver versions

unknown

Other versions: unaffected

Original source 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.

Inside the record

Evidence available

Package identity
Version evidence
Remediation guidance · not supplied
Weakness classification
Additional publishers

Describes the evidence in this view, not whether the product is safe.

Original records

CVE-2025-71392

View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.

cve.new JSON →

Underlying weaknesses

The source’s classification of what caused the vulnerability.

CWE-77 ↗

Improper Neutralization of Special Elements used in a Command ('Command Injection')

VulnCheck

Related →

Environment requirements

These conditions apply together as specified by the publisher. A matching product name alone does not establish exposure.

VulnCheck · platform conditions

Any condition may hold

Vulnerable product

cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*

From (inclusive): 2.2.0

Before: 2.2.2

Vulnerable product

cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*

From (inclusive): 2.1.0

Before: 2.1.5

Vulnerable product

cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*

Before: 2.0.5

Original applicability statements
[
  {
    "nodes": [
      {
        "operator": "OR",
        "negate": false,
        "cpeMatch": [
          {
            "vulnerable": true,
            "criteria": "cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "2.2.2",
            "versionStartIncluding": "2.2.0"
          },
          {
            "vulnerable": true,
            "criteria": "cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "2.1.5",
            "versionStartIncluding": "2.1.0"
          },
          {
            "vulnerable": true,
            "criteria": "cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "2.0.5"
          }
        ]
      }
    ]
  }
]
Contributing organizations · 2
VulnCheck

Assigning organization

2026-10-29
CISA-ADP

Additional data publisher

2026-07-21

What changed

Follow changes
No substantive changes have been recorded here yet. History starts when cve.new observes a change after tracking is enabled; earlier edits are not reconstructed.

Large field values are marked as truncated previews. Original source snapshots remain retained.

References

2 sources