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 byVersionScoreVector
CNA4.09.0CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
CNA3.18.5CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
CNA4.09.0CVSS: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
CNA3.18.5CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD3.18.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub3.18.5CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected packages

EcosystemPackageAffectedFixed in
crates.iosurrealdb
<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

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.