# CVE-2024-58366

## Summary

- **CVE ID:** CVE-2024-58366
- **Severity:** CRITICAL
- **CVSS Score:** 9 (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)
- **CWE:** CWE-134
- **Published:** Jul 18, 2026
- **Last Modified:** Jul 28, 2026

## 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.

## Affected Products

- surrealdb — surrealdb (0)
- surrealdb — surrealdb (1.1.1)
- surrealdb — surrealdb (0.4.2)

## References

- [CNA](https://github.com/surrealdb/surrealdb/security/advisories/GHSA-q3gg-m8hr-h4x4)
- [CNA](https://www.vulncheck.com/advisories/surrealdb-before-format-string-via-scripting-functions)

## Exploitation Prediction (EPSS)

- **EPSS Score:** 0.32%
- **EPSS Percentile:** 24.2

---
_Exported from OnDuty AI Vulnerability Intelligence on 2026-09-10._