CVE-2024-58366
Published:July 18, 2026
Updated:August 06, 2026
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.
Affected Packages
https://github.com/DelSkayn/rquickjs.git (GITHUB):
Affected version(s) >=0.1.0 <0.4.2Fix Suggestion:
Update to version 0.4.2surrealdb (RUST):
Affected version(s) >=1.0.0-beta.1 <1.1.1Fix Suggestion:
Update to version 1.1.1rquickjs (RUST):
Affected version(s) >=0.0.1 <0.4.2Fix Suggestion:
Update to version 0.4.2Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
9
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
PRESENT
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
8.5
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Use of Externally-Controlled Format String
EPSS
Base Score:
0.30