Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

SurrealDB before 1.1.1 contains a format string vulnerability in the rquickjs Exception::throw_type function when scripting is enabled. (CVE-2024-58366)

0
Critical
Published: 07/18/2026 (07/18/2026, 15:31:49 UTC)
Source: GCVE Database

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.

CVSS v4.0

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
Scope
X
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected software

GitHub Actionsmore threats →ai
surrealdb/surrealdb
pkg:github/surrealdb/surrealdb
Affected versions
<1.1.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/18/2026, 16:22:00 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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, 20:39:38 UTC

Views: 10

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses