SurrealDB versions prior to 1.1.1 contain a format string vulnerability in the rquickjs Exception::throw_type function when scripting is enabled. (CVE-2024-58366)
SurrealDB versions prior to 1.1.1 contain a format string vulnerability in the rquickjs Exception::throw_type function when scripting is enabled. This vulnerability allows attackers with scripting privileges to supply malicious format string sequences in error inputs, potentially leading to arbitrary memory reads or code execution with the privileges of the SurrealDB process. No specific affected versions are explicitly stated, but the issue is fixed starting from version 1.1.1. There are no known exploits in the wild at this time.
AI Analysis
Technical Summary
CVE-2024-58366 is a format string vulnerability affecting SurrealDB prior to version 1.1.1. The flaw exists in the rquickjs Exception::throw_type function used when scripting is enabled. Attackers who have scripting privileges can exploit this vulnerability by supplying crafted format string sequences in error inputs, which may allow them to read arbitrary memory or execute code with the same privileges as the SurrealDB process. This vulnerability is categorized under CWE-134 (Use of Externally-Controlled Format String). No known exploits in the wild have been reported, and no official patch or remediation details are provided in the source data.
Potential Impact
Successful exploitation can lead to arbitrary memory disclosure or remote code execution with the privileges of the SurrealDB process. This can compromise the confidentiality and integrity of the system running SurrealDB. The vulnerability requires that the attacker already has scripting privileges, which limits the attack surface to users with some level of access to the scripting environment.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or fix is provided in the available data, users should monitor SurrealDB vendor communications for updates. Until a fix is available, restricting scripting privileges to trusted users and disabling scripting if not required can reduce the risk of exploitation.
SurrealDB versions prior to 1.1.1 contain a format string vulnerability in the rquickjs Exception::throw_type function when scripting is enabled. (CVE-2024-58366)
Description
SurrealDB versions prior to 1.1.1 contain a format string vulnerability in the rquickjs Exception::throw_type function when scripting is enabled. This vulnerability allows attackers with scripting privileges to supply malicious format string sequences in error inputs, potentially leading to arbitrary memory reads or code execution with the privileges of the SurrealDB process. No specific affected versions are explicitly stated, but the issue is fixed starting from version 1.1.1. There are no known exploits in the wild at this time.
CVSS v4.0
Affected software
pkg:github/surrealdb/surrealdbRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-58366 is a format string vulnerability affecting SurrealDB prior to version 1.1.1. The flaw exists in the rquickjs Exception::throw_type function used when scripting is enabled. Attackers who have scripting privileges can exploit this vulnerability by supplying crafted format string sequences in error inputs, which may allow them to read arbitrary memory or execute code with the same privileges as the SurrealDB process. This vulnerability is categorized under CWE-134 (Use of Externally-Controlled Format String). No known exploits in the wild have been reported, and no official patch or remediation details are provided in the source data.
Potential Impact
Successful exploitation can lead to arbitrary memory disclosure or remote code execution with the privileges of the SurrealDB process. This can compromise the confidentiality and integrity of the system running SurrealDB. The vulnerability requires that the attacker already has scripting privileges, which limits the attack surface to users with some level of access to the scripting environment.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or fix is provided in the available data, users should monitor SurrealDB vendor communications for updates. Until a fix is available, restricting scripting privileges to trusted users and disabling scripting if not required can reduce the risk of exploitation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-qcfm-cmfw-f4x4
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2024-58366"]
- Ecosystems
- []
- Database Specific Severity
- CRITICAL
- Cvss Version
- 4.0
Threat ID: 6a5ba17e44ab8fbf7c789b8c
Added to database: 07/18/2026, 15:53:34 UTC
Last enriched: 07/18/2026, 16:22:00 UTC
Last updated: 07/18/2026, 17:34:20 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.