CVE-2025-11060: SurrealDB SurrealDB Is Vulnerable To Unauthorized Vulnerability

MODERATE
Advisory Identifier: GHSA-7vm2-j586-vcvc
CWE-863
Published
Advisory Summary

CVE-2025-11060 is a MODERATE surrealdb is vulnerable to unauthorized vulnerability (CWE-863: Incorrect Authorization) affecting SurrealDB libraries in the crates.io ecosystem. The issue involves surrealdb is vulnerable to unauthorized data exposure via live query subscriptions. Remediation is available by upgrading affected packages to version 2.3.8, 2.2.8, 2.1.9, 3.0.0-alpha.8.

CVE-2025-11060 at a Glance

CVE Identifier CVE-2025-11060
GHSA Identifier GHSA-7vm2-j586-vcvc
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-863: Incorrect Authorization
Affected Product SurrealDB
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix CVE-2025-11060

To remediate this vulnerability, upgrade all affected SurrealDB dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

SurrealDB fixed: 2.3.8
Upgrade SurrealDB to 2.3.8
SurrealDB fixed: 2.2.8
Upgrade SurrealDB to 2.2.8
SurrealDB fixed: 2.1.9
Upgrade SurrealDB to 2.1.9
SurrealDB fixed: 3.0.0-alpha.8
Upgrade SurrealDB to 3.0.0-alpha.8
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for SurrealDB

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-11060, inspect your project dependencies for SurrealDB:

inspect dependencies for SurrealDB

Analyze the terminal output to locate any version of SurrealDB in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.8), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In SurrealDB, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

`LIVE SELECT` statements are used to capture changes to data within a table in real time. Documents included in `WHERE` conditions and `DELETE` notifications were not properly reduced to respect the querying user's security context. Instead the leaked documents reflect the context of the user triggering the notification. This allows a record or guest user with permissions to run live query subscriptions on a table to observe unauthorised records within the same table, when another user is altering or deleting these records, bypassing access controls. ### Impact A record or guest user with permissions to run live query subscriptions on a table is able to observe unauthorised records within the same table, with unauthorised records returned when deleted, or when records matching the WHERE conditions are created, updated, or deleted, by another user. This impacts confidentiality, limited to the table the attacker has access to, and with the data disclosed dependent of the actions taken by other users. ### Patches A patch has been created for the following versions: - Versions 2.1.9, 2.2.8 and 2.3.8 and later are not affected by this issue. - The first release following v3.0.0-alpha.7 will be patched. ### Workarounds Assess the impact of users with permissions on table records effectively having full read access to the table, use separate tables if required, with impacts to functionality.

CVE-2025-11060 Affected SurrealDB Versions

4 component(s)
Fixed Versions:
2.3.82.2.82.1.93.0.0-alpha.8
Product / Package Ecosystem Affected Versions Fixed Version
SurrealDB
crates.io
≥ 2.3.0
< 2.3.8
2.3.8
SurrealDB
crates.io
≥ 2.2.0
< 2.2.8
2.2.8
SurrealDB
crates.io
< 2.1.9
2.1.9
SurrealDB
crates.io
≥ 3.0.0-alpha.0
< 3.0.0-alpha.8
3.0.0-alpha.8

References

Frequently Asked Questions

What is CVE-2025-11060?
CVE-2025-11060 is a security vulnerability in SurrealDB involving SurrealDB is Vulnerable to Unauthorized Data Exposure via LIVE Query Subscriptions under CWE-863: Incorrect Authorization.
Which SurrealDB versions are affected?
Affected versions include releases prior to 2.3.8, 2.2.8, 2.1.9, 3.0.0-alpha.8 across affected packages: SurrealDB.
What version fixes CVE-2025-11060?
Upgrading to 2.3.8, 2.2.8, 2.1.9, 3.0.0-alpha.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is SurrealDB affected?
Yes, SurrealDB is affected in releases prior to 2.3.8, 2.2.8, 2.1.9, 3.0.0-alpha.8. Upgrade your dependency to 2.3.8, 2.2.8, 2.1.9, 3.0.0-alpha.8 or later.
What CWE is associated with CVE-2025-11060?
CVE-2025-11060 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check crates.io dependencies for CVE-2025-11060?
Run the dependency tree command: 'inspect dependencies for SurrealDB'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7vm2-j586-vcvc",
  "modified" : "2025-09-26T16:58:08Z",
  "published" : "2025-09-11T21:53:23Z",
  "aliases" : [ "CVE-2025-11060" ],
  "summary" : "SurrealDB is Vulnerable to Unauthorized Data Exposure via LIVE Query Subscriptions",
  "details" : "`LIVE SELECT` statements are used to capture changes to data within a table in real time. Documents included in `WHERE` conditions and `DELETE` notifications were not properly reduced to respect the querying user's security context. Instead the leaked documents reflect the context of the user triggering the notification.\n\nThis allows a record or guest user with permissions to run live query subscriptions on a table to observe unauthorised records within the same table, when another user is altering or deleting these records, bypassing access controls.\n\n### Impact\nA record or guest user with permissions to run live query subscriptions on a table is able to observe unauthorised records within the same table, with unauthorised records returned when deleted, or when records matching the WHERE conditions are created, updated, or deleted, by another user. This impacts confidentiality, limited to the table the attacker has access to, and with the data disclosed dependent of the actions taken by other users.\n\n### Patches\nA patch has been created for the following versions:\n\n- Versions 2.1.9, 2.2.8 and 2.3.8 and later are not affected by this issue. \n- The first release following v3.0.0-alpha.7 will be patched.\n\n### Workarounds\nAssess the impact of users with permissions on table records effectively having full read access to the table, use separate tables if required, with impacts to functionality.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "SurrealDB"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      }, {
        "fixed" : "2.3.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "SurrealDB"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "SurrealDB"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "SurrealDB"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0-alpha.0"
      }, {
        "fixed" : "3.0.0-alpha.8"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 3.0.0-alpha.7"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/surrealdb/surrealdb/security/advisories/GHSA-7vm2-j586-vcvc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-11060"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/surrealdb/surrealdb/pull/6247"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/surrealdb/surrealdb/commit/d81169a06b89f0c588134ddf2d62eeb8d5e8fd0c"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2025-11060"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2394708"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/surrealdb/surrealdb"
  }, {
    "type" : "WEB",
    "url" : "https://surrealdb.com/docs/surrealql/statements/live"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-11T21:53:23Z",
    "nvd_published_at" : null
  }
}