{"cve":"CVE-2024-58366","nvd":{"published":"2026-07-18T14:17:09.600","modified":"2026-10-27T18:10:00.130","status":"Analyzed","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.","cvss_v4":{"vector":"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","score":9.0},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-134"],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-q3gg-m8hr-h4x4","https://www.vulncheck.com/advisories/surrealdb-before-format-string-via-scripting-functions"],"products":["delskayn:rquickjs","surrealdb:surrealdb"],"source":"nvd","synced_at":"2026-10-27T18:39:43.087796372+00:00"},"epss":{"cve":"CVE-2024-58366","score":0.00575,"percentile":0.47245,"date":"2026-10-27"},"kev":null,"osv":[{"id":"GHSA-q3gg-m8hr-h4x4","url":"https://osv.dev/vulnerability/GHSA-q3gg-m8hr-h4x4","summary":"Externally Controlled Format String in Scripting Functions","modified":"2026-07-19T03:56:47.888953236Z","packages":[{"ecosystem":"crates.io","name":"surrealdb","purl":"pkg:cargo/surrealdb","ranges":["<1.1.1"],"fixed":["1.1.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}