GHSA-98f8-j56x-2hh4: Duplicate Advisory SurrealDB Is Vulnerable To Unauthorized Vulnerability

MODERATE
CVSS 5.7
CWE-863
Published
Advisory Summary

GHSA-98f8-j56x-2hh4 is a MODERATE (CVSS 5.7) surrealdb is vulnerable to unauthorized vulnerability (CWE-863: Incorrect Authorization) affecting Duplicate Advisory libraries in the crates.io ecosystem. The issue involves surrealdb is vulnerable to unauthorized data exposure via live query subscriptions. Remediation is available in the latest vendor maintenance releases.

GHSA-98f8-j56x-2hh4 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-98f8-j56x-2hh4
Severity MODERATE
CVSS v3.1 Base Score 5.7
CWE Classification CWE-863: Incorrect Authorization
Affected Product Duplicate Advisory
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 5.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-98f8-j56x-2hh4

To remediate this vulnerability, upgrade all affected Duplicate Advisory 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: Latest secure release
Upgrade surrealdb to Latest secure release
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 GHSA-98f8-j56x-2hh4, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for surrealdb

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 Duplicate Advisory, 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

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-7vm2-j586-vcvc. This link is maintained to preserve external references. ## Original Description A flaw was found in the live query subscription mechanism of the database engine. This vulnerability allows record or guest users to observe unauthorized records within the same table, bypassing access controls, via crafted LIVE SELECT subscriptions when other users alter or delete records.

GHSA-98f8-j56x-2hh4 Affected Duplicate Advisory Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
surrealdb
crates.io
≥ 2.3.0

References

Frequently Asked Questions

What is GHSA-98f8-j56x-2hh4?
GHSA-98f8-j56x-2hh4 is a security vulnerability in Duplicate Advisory involving SurrealDB is Vulnerable to Unauthorized Data Exposure via LIVE Query Subscriptions under CWE-863: Incorrect Authorization.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to current release patches across affected packages: surrealdb.
What version fixes GHSA-98f8-j56x-2hh4?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is surrealdb affected?
Yes, surrealdb is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-98f8-j56x-2hh4?
GHSA-98f8-j56x-2hh4 has a CVSS v3.1 base score of 5.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with GHSA-98f8-j56x-2hh4?
GHSA-98f8-j56x-2hh4 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 GHSA-98f8-j56x-2hh4?
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-98f8-j56x-2hh4",
  "modified" : "2025-09-26T16:57:37Z",
  "published" : "2025-09-26T15:30:28Z",
  "withdrawn" : "2025-09-26T16:57:37Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: SurrealDB is Vulnerable to Unauthorized Data Exposure via LIVE Query Subscriptions",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-7vm2-j586-vcvc. This link is maintained to preserve external references.\n\n## Original Description\nA flaw was found in the live query subscription mechanism of the database engine. This vulnerability allows record or guest users to observe unauthorized records within the same table, bypassing access controls, via crafted LIVE SELECT subscriptions when other users alter or delete records.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "surrealdb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 2.3.8"
    }
  } ],
  "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-26T16:57:37Z",
    "nvd_published_at" : "2025-09-26T13:15:41Z"
  }
}