Improper Authorization Affecting surrealdb package, versions <2.0.4


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-SURREALDB-8171960
  • published9 Oct 2024
  • disclosed8 Oct 2024
  • creditShanthakumar, Xkonti

Introduced: 8 Oct 2024

CVE NOT AVAILABLE CWE-285  (opens in a new tab)

How to fix?

Upgrade surrealdb to version 2.0.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Authorization due to the order in which permissions were processed. This allows an attacker without required permissions to view field values or record contents of the statements, filters, and computations.

Workaround

Users who are not able to upgrade to the fixed version are advised to restrict:

  1. read access to fields at the table level

  2. clients to UPDATE or DELETE records that they should not be able to view.

CVSS Scores

version 4.0
version 3.1