CVE-2024-58366: SurrealDB before 1.1.1 Format String via Scripting Functions

Published Jul 18, 2026
·
Updated

SurrealDB before 1.1.1 contains a format string vulnerability in the rquickjs Exception::throwtype 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 Software

3 affected components
SurrealDB SurrealDB<1.1.1
Delskayn Rquickjs Rust<0.4.2
SurrealDB SurrealDB<1.1.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade SurrealDB to a version that resolves this vulnerability.

    Fixed in 1.1.1

Event History

Jul 18, 2026
CVE Published
via MITRE·01:10 PM
Data Sourced
via MITRE·01:10 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-58366?

The severity of CVE-2024-58366 is rated high with a score of 8.5.

2

How do I fix CVE-2024-58366?

To mitigate CVE-2024-58366, upgrade to SurrealDB version 1.1.1 or later.

3

What are the risks associated with CVE-2024-58366?

CVE-2024-58366 allows attackers with scripting privileges to exploit a format string vulnerability, potentially leading to arbitrary memory read or code execution.

4

Which versions of SurrealDB are affected by CVE-2024-58366?

CVE-2024-58366 affects SurrealDB versions prior to 1.1.1.

5

What function is vulnerable in CVE-2024-58366?

The vulnerability in CVE-2024-58366 resides in the rquickjs Exception::throw_type function when scripting is enabled.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203