CVE-2024-58366 json
SurrealDB before 1.1.1 Format String via Scripting Functions
published 2024-02-21 2 y ago modified 2026-10-29 10 d ago also GHSA-q3gg-m8hr-h4x4 , EUVD-2024-55682
- cvss
- 8.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
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 arbitrary memory or execute code with SurrealDB process privileges.
Patch / fix
- crates.io surrealdb 1.1.1
- surrealdb surrealdb 1.1.1
- DelSkayn rquickjs 0.4.2
- github.com/surrealdb/surrealdb#3332 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 3 mo ago
Exploit prediction
0.57% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 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 |
| CNA | 3.1 | 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| CNA | 4.0 | 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 | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | surrealdb | <1.1.1 |
1.1.1 |
Affected products
- surrealdb surrealdb
- DelSkayn rquickjs
Classification
- Weakness
-
- CWE-134 Use of Externally-Controlled Format String
References
-
github.com
/surrealdb/surrealdb/pull/3332
web
-
github.com
/surrealdb/surrealdb/security/advisories/GHSA-q3gg-m8hr-h4x4
vendor-advisory, web
-
vulncheck.com
/advisories/surrealdb-before-format-string-via-scripting-functions
third-party-advisory
-
github.com
/surrealdb/surrealdb/issues/3327
web
-
github.com
/surrealdb/surrealdb
package
Sources
- CVE List CVE-2024-58366
- GitHub Advisory GHSA-q3gg-m8hr-h4x4
- NVD CVE-2024-58366
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.