KeygraphLabs · CVE MCP

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.

CVSS
8.8
high, from NVD
EPSS
0.40%
percentile 35.8%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-21Package advisory GHSA-q3gg-m8hr-h4x4
2026-07-18Published
2026-10-29Record last changed
2026-11-30EPSS when our history starts: 0.57%
2026-12-05Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-q3gg-m8hr-h4x4surrealdb (crates.io)1.1.1

Also known as: GHSA-q3gg-m8hr-h4x4

Credited: akkie (finder)

Related

CVEPublishedCVSSSummary
CVE-2026-1214172026-11-038.8SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends
CVE-2026-637632026-07-208.8SurrealDB before 2.5.0 Privilege Escalation via Future Fields
CVE-2026-637622026-07-206.5SurrealDB before v2.6.1 Denial of Service via scripting
CVE-2026-637612026-07-205.3SurrealDB before 3.1.0 Algorithm Downgrade via ES512
CVE-2026-637602026-07-208.7SurrealDB before 3.1.0 Denial of Service via JSON Parser
CVE-2026-637592026-07-207.1SurrealDB before 3.1.0 Denial of Service nested type annotations
CVE-2026-637582026-07-205.3SurrealDB before 3.1.0 Authorization Bypass via KILL Statement
CVE-2026-637572026-07-208.7SurrealDB 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.

NVD · CVE.org