Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-109342 Overview
CVE-2026-109342 is a missing authentication vulnerability [CWE-306] in SurrealDB versions 3.0.0 through 3.2.x, fixed in 3.3.0. The flaw exists in the revoke RPC method, which fails to verify proof of possession before invalidating refresh tokens. Low-privileged or unauthenticated callers can revoke refresh tokens belonging to other users. Attackers obtain grant identifiers through ACCESS SHOW ALL with VIEWER permission or by using leaked tokens. The result is forced re-authentication across targeted accounts, degrading availability of session continuity for legitimate users.
Critical Impact
Attackers with minimal privileges can permanently invalidate refresh tokens for arbitrary users, forcing re-authentication and disrupting authenticated sessions across the SurrealDB deployment.
Affected Products
- SurrealDB 3.0.0 through 3.2.x
- SurrealDB server deployments exposing the RPC interface
- Applications relying on SurrealDB refresh token flows for session persistence
Discovery Timeline
- 2026-10-12 - CVE-2026-109342 published to the National Vulnerability Database (NVD)
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-109342
Vulnerability Analysis
The vulnerability resides in SurrealDB's revoke Remote Procedure Call (RPC) method. The method accepts a grant identifier and invalidates the associated refresh token without validating that the caller possesses the token or holds authority over the grant. This breaks the ownership binding expected of credential-revocation operations.
An attacker needs only a grant identifier to invalidate another user's refresh token. Grant identifiers are enumerable through the ACCESS SHOW ALL statement, which the VIEWER role is permitted to execute. Attackers can also harvest identifiers from leaked or logged tokens.
The impact is limited to integrity and availability of authentication state. The vulnerability does not disclose token contents or allow authentication as the victim. However, repeated revocation forces continuous re-authentication and can be chained with phishing campaigns to intercept credentials during forced re-login.
Root Cause
The revoke RPC handler omits an authorization check binding the caller identity to the target grant. The handler trusts the supplied grant identifier as sufficient authority. SurrealDB classifies this under [CWE-306: Missing Authentication for Critical Function].
Attack Vector
Exploitation occurs over the network against the SurrealDB RPC endpoint. The attacker authenticates with any role that can issue ACCESS SHOW ALL, including VIEWER, or supplies credentials obtained elsewhere. The attacker then enumerates active grants and issues revoke calls targeting refresh tokens belonging to higher-privileged users.
// Vulnerable flow described in prose - no verified PoC code is published.
// 1. Attacker authenticates to SurrealDB RPC as a low-privilege VIEWER.
// 2. Attacker issues ACCESS SHOW ALL to enumerate grant identifiers.
// 3. Attacker invokes the revoke RPC method with a victim grant ID.
// 4. SurrealDB invalidates the victim's refresh token without
// verifying proof of possession.
// Refer to the SurrealDB security advisory GHSA-2jc3-58q7-mm2j for details.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-109342
Indicators of Compromise
- Unexpected spikes in revoke RPC calls originating from low-privilege accounts
- Clusters of forced re-authentication events for multiple users within short time windows
- Repeated ACCESS SHOW ALL queries from accounts holding only VIEWER permission
- Refresh token invalidations lacking a preceding logout or password-change event
Detection Strategies
- Audit SurrealDB RPC logs for revoke method calls and correlate the caller identity with the grant owner
- Alert when a single session issues revoke operations against grants it does not own
- Baseline normal ACCESS SHOW ALL usage and flag deviations from service accounts and administrators
Monitoring Recommendations
- Forward SurrealDB authentication and RPC logs to a centralized SIEM for correlation
- Monitor authentication failure and re-authentication rates per user as a leading indicator of mass revocation
- Track grant lifecycle events (issue, revoke, refresh) and flag revocations without matching user-initiated activity
How to Mitigate CVE-2026-109342
Immediate Actions Required
- Upgrade SurrealDB to version 3.3.0 or later, which enforces proof of possession on the revoke RPC method
- Restrict the VIEWER role from executing ACCESS SHOW ALL where business requirements allow
- Rotate any refresh tokens or grants suspected of exposure prior to patching
- Review RPC-facing network exposure and restrict access to trusted application tiers
Patch Information
SurrealDB addressed CVE-2026-109342 in release 3.3.0. The fix adds authorization validation to the revoke RPC handler so that only the token owner or an administrator can invalidate a given grant. Refer to the GitHub Security Advisory GHSA-2jc3-58q7-mm2j and the VulnCheck Advisory for SurrealDB for release notes and remediation guidance.
Workarounds
- Place the SurrealDB RPC endpoint behind an authenticating reverse proxy that filters revoke calls per-user
- Reduce refresh token lifetimes to limit the window during which revocation causes meaningful disruption
- Remove or sharply restrict accounts holding the VIEWER role until the upgrade is applied
# Example: upgrade SurrealDB container deployment to a patched version
docker pull surrealdb/surrealdb:3.3.0
docker stop surrealdb && docker rm surrealdb
docker run -d --name surrealdb \
-p 8000:8000 \
surrealdb/surrealdb:3.3.0 \
start --log info --user root --pass "$SURREAL_ROOT_PASS" file:/data/surreal.db
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

