CVE-2024-58366

CRITICAL CVSS 4.0: 9.0 EPSS 0.57%
Updated Oct 30, 2026
Surrealdb
Parameter Value
CVSS 9.0 (CRITICAL)
Affected Versions before 1.1.1
Fixed In 0.4.2
Type CWE-134 (Use of Externally-Controlled Format String)
Vendor Surrealdb
Public PoC No

SurrealDB before 1.1.1 contains a format string vulnerability in the rquickjs Exception::throw_type function when scripting is enabled. Attackers with scripting privileges can supply format string sequences in error inputs to read arbitrary memory or execute code with SurrealDB process privileges.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
High
Difficult to exploit
Attack Requirements
Present
Additional conditions required
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Vulnerable Products 2

Configuration From (including) Up to (excluding)
Delskayn Rquickjs
cpe:2.3:a:delskayn:rquickjs:*:*:*:*:*:rust:*:*
— 0.4.2
Surrealdb Surrealdb
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
— 1.1.1