CVE-2024-58366 · VulnCheck
SurrealDB before 1.1.1 Format String via Scripting Functions
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.
Published 2026-07-18, last changed 2026-10-29. Weakness: CWE-134.
How to fix
Upgrade to a fixed version: surrealdb 1.1.1 (crates.io). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in surrealdb/surrealdb by pull request #3332, e92bf7a1e6, b261047303. The fix changed source code, but no function could be located in it. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2024-02-21 | Package advisory GHSA-q3gg-m8hr-h4x4 |
| 2026-07-18 | Published |
| 2026-10-29 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 0.57% |
| 2026-12-05 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-q3gg-m8hr-h4x4 | surrealdb (crates.io) | 1.1.1 |
Also known as: GHSA-q3gg-m8hr-h4x4
Credited: akkie (finder)
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-121417 | 2026-11-03 | 8.8 | SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends |
| CVE-2026-63763 | 2026-07-20 | 8.8 | SurrealDB before 2.5.0 Privilege Escalation via Future Fields |
| CVE-2026-63762 | 2026-07-20 | 6.5 | SurrealDB before v2.6.1 Denial of Service via scripting |
| CVE-2026-63761 | 2026-07-20 | 5.3 | SurrealDB before 3.1.0 Algorithm Downgrade via ES512 |
| CVE-2026-63760 | 2026-07-20 | 8.7 | SurrealDB before 3.1.0 Denial of Service via JSON Parser |
| CVE-2026-63759 | 2026-07-20 | 7.1 | SurrealDB before 3.1.0 Denial of Service nested type annotations |
| CVE-2026-63758 | 2026-07-20 | 5.3 | SurrealDB before 3.1.0 Authorization Bypass via KILL Statement |
| CVE-2026-63757 | 2026-07-20 | 8.7 | SurrealDB before 3.1.0 Session Hijacking via /rpc sessions |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2024-58366, or call /api/v1/vulnerabilities/CVE-2024-58366. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.