8.5high
CVE-2024-58366
SurrealDB before 1.1.1 Format String via Scripting Functions
Also known as GHSA-q3gg-m8hr-h4x4
Published 2 y ago · modified 8 d ago · JSON
CVSS
8.5
v3.1 · CNA
CISA KEV
No
not known exploited
EPSS
0.6%
percentile 48%
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.
CISA SSVC assessment
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 3 mo ago
Exploit prediction (EPSS)
0.57% probability of exploitation in the next 30 days, higher than 48% of all scored CVEs.
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 |
| CNA | 3.1 | 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| 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/security/advisories/GHSA-q3gg-m8hr-h4x4 · vendor-advisory
- vulncheck.com /advisories/surrealdb-before-format-string-via-scripting-functions · third-party-advisory
- github.com /surrealdb/surrealdb/issues/3327 · web
- github.com /surrealdb/surrealdb/pull/3332 · web
- github.com /surrealdb/surrealdb · package
Sources
- CVE List: CVE-2024-58366
- GitHub Advisory: GHSA-q3gg-m8hr-h4x4
- NVD: CVE-2024-58366
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.