CVE-2024-58366
published critical CVSS 4.0 · 9.0SurrealDB before 1.1.1 Format String via Scripting Functions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| surrealdb | — | surrealdb0 to < 1.1.1 (affected · semver) · 1.1.1 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| DelSkayn | — | rquickjs0 to < 0.4.2 (affected · semver) · 0.4.2 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.0 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| surrealdb | surrealdb | 0 to < 1.1.1 (affected · semver)1.1.1 (unaffected · semver)Default: unaffected | VulnCheck · cna |
| DelSkayn | rquickjs | 0 to < 0.4.2 (affected · semver)0.4.2 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-134 Use of Externally-Controlled Format String
References
2- GitHub Security Advisory (GHSA-q3gg-m8hr-h4x4) https://github.com/surrealdb/surrealdb/security/advisories/GHSA-q3gg-m8hr-h4x4
- VulnCheck Advisory: SurrealDB before 1.1.1 Format String via Scripting Functions https://www.vulncheck.com/advisories/surrealdb-before-format-string-via-scripting-functions
Provider assertions
2VulnCheck · cna
SurrealDB before 1.1.1 Format String via Scripting Functions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a03966264f6c1de820e3c01c6c75b35ab43dfd860a4d1dc102a108fca56de293
- Ingested
- 29 Oct 2026, 21:17:51 UTC
- Source record
- Official CVE record