Skip to main content
EPSS 0.4%top 72%

Surrealdb: Duplicate Advisory: Improper Authorization in Select Permissions

0
High
Published: 10/08/2024 (10/08/2024, 22:21:09 UTC)
Source: GCVE Database
Product: surrealdb

Description

SurrealDB versions before 2.0.4 have an authorization vulnerability where field permissions are not properly enforced during SELECT, UPDATE, and DELETE operations. This allows authorized users to access field values they should not be permitted to see by exploiting various query techniques such as SELECT VALUE operations, field aliasing, and WHERE clause filtering. The vulnerability enables leakage of protected field contents despite lacking explicit SELECT permissions.

CVSS v3.1

Score 6.5medium

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

Affected software

GitHub Actionsmore threats →ai
surrealdb/surrealdb
pkg:github/surrealdb/surrealdb
Affected versions
<2.0.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/12/2026, 11:02:31 UTC

Technical Analysis

CVE-2024-58367 affects SurrealDB versions prior to 2.0.4. The database fails to enforce field-level permissions correctly during SELECT, UPDATE, and DELETE queries. Attackers with some level of authorization can bypass these restrictions using query techniques including SELECT VALUE operations, field aliasing, function arguments, WHERE clause filtering, RETURN BEFORE clauses, and SET clause references to access unauthorized field data. This improper authorization issue is classified under CWE-285.

Potential Impact

The vulnerability allows authorized users to access sensitive field data they are not permitted to view, resulting in a confidentiality breach. The CVSS 3.1 base score is 6.5 (High), reflecting network attack vector, low attack complexity, required privileges, no user interaction, and high confidentiality impact with no integrity or availability impact. There are no known exploits in the wild at this time.

Mitigation Recommendations

A fix is available in SurrealDB version 2.0.4. Users should upgrade to version 2.0.4 or later to remediate this improper authorization vulnerability. No additional mitigation steps are indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-j9rh-f527-3x87
Osv Schema Version
1.4.0
Aliases
["CVE-2024-58367"]
Database Specific Severity
HIGH
Cvss Version
4.0

Threat ID: 6a5ba17e44ab8fbf7c789b92

Added to database: 07/18/2026, 15:53:34 UTC

Last enriched: 09/12/2026, 11:02:31 UTC

Last updated: 10/13/2026, 18:48:11 UTC

Views: 142

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses