CVE-2024-58366 Details
Description
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.
A format string vulnerability has been identified in SurrealDB versions prior to 1.1.1. This issue resides in the rquickjs Exception::throw_type function, which is used to execute scripting functions within SurrealDB. When scripting is enabled, attackers with scripting privileges can inject format string sequences into error inputs, potentially leading to arbitrary memory read or execution of code with SurrealDB process privileges.
Users can update to SurrealDB version 1.1.1 or later, which addresses this vulnerability. For those unable to update, it is recommended to restrict access to scripting functions from untrusted users, either by removing scripting capability by default or using the --deny-scripting option. If neither option is feasible, limit network access to trusted users.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/surrealdb/surrealdb/security/advisories/GHSA-q3gg-m8hr-h4x4 | [email protected] | Vendor Advisory |
| https://www.vulncheck.com/advisories/surrealdb-before-format-string-via-scripting-functions | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-134 | Use of Externally-Controlled Format String | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| delskayn rquickjs | < 0.4.2 |
CPE
Remediation
| |
| surrealdb surrealdb | < 1.1.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 29, 2026 | CVE Modified | [email protected] |
| Oct 27, 2026 | CVE Translated | [email protected] |
| Aug 13, 2026 | Initial Analysis | [email protected] |
| Jul 20, 2026 | CVE Modified | CISA-ADP |
| Jul 18, 2026 | New CVE Received | [email protected] |