---
id: CVE-2024-58366
title: >-
  SurrealDB before 1.1.1 contains a format string vulnerability in the rquickjs
  Exception::throw_type function when scripting is enabled
summary: >-
  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 arbitr…
severity: high
cvss: 8.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-134
published: '2026-07-18'
updated: '2026-07-18'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-58366'
references:
  - url: >-
      https://github.com/surrealdb/surrealdb/security/advisories/GHSA-q3gg-m8hr-h4x4
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/surrealdb-before-format-string-via-scripting-functions
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-07-19T03:27:58.448Z'
epss: 0.00316
epssPercentile: 0.24656
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
