CVE-2024-58366

SurrealDB before 1.1.1 Format String via Scripting Functions

State
Published
Severity
9.0 Critical
Published
Jul 18, 2026
Updated
Oct 29, 2026
Reserved
Jul 18, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.09.0 CriticalCVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HVulnCheck
3.18.5 HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:HVulnCheck

Weaknesses

  • CWE-134 Use of Externally-Controlled Format String

Affected Products

ProductVersions
surrealdbsurrealdb
  • before 1.1.1Affected
  • 1.1.1Not affected
rquickjsDelSkayn
  • before 0.4.2Affected
  • 0.4.2Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.