CVE-2024-58366
CRITICAL 9.0CVSS 4.0Externally Controlled Format String in 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
- 18 Jul 2026
- Last modified
- 29 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Analyzed
- Weakness
- CWE-134
- Also known as
- GHSA-q3gg-m8hr-h4x4
- Sources
- NVDJSONOSV GHSA-q3gg-m8hr-h4x4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | CRITICAL 9.0 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | delskayn | rquickjscpe:2.3:a:delskayn:rquickjs:*:*:*:*:*:rust:*:* |
< 0.4.2 | 0.4.2 |
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:* |
< 1.1.1 | 1.1.1 |
| OSV | crates.io | surrealdb | < 1.1.1 | 1.1.1 |
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-q3gg-m8hr-h4x4 · Vendor Advisory, WEB
- https://www.vulncheck.com/advisories/surrealdb-before-format-string-via-scripting-functions · Third Party Advisory
- https://github.com/surrealdb/surrealdb/issues/3327 · WEB
- https://github.com/surrealdb/surrealdb/pull/3332 · WEB
- https://github.com/surrealdb/surrealdb · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 18 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Feb 2024)