{"id":"CVE-2024-58366","aliases":[],"cve":{"records":[{"id":"CVE-2024-58366","source":"VulnCheck","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-07-18T12:40:52.916Z","published":"2026-07-18T13:10:06.939Z","modified":"2026-10-29T21:15:09.355Z"}],"publishers":[{"name":"VulnCheck","role":"CNA","organizationId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","modified":"2026-10-29T21:15:09.355Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-07-20T15:13:48.265Z"}],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-q3gg-m8hr-h4x4","tags":["vendor-advisory"],"source":"VulnCheck"},{"url":"https://www.vulncheck.com/advisories/surrealdb-before-format-string-via-scripting-functions","tags":["third-party-advisory"],"source":"VulnCheck"}],"weaknesses":[{"id":"CWE-134","description":"Use of Externally-Controlled Format String","source":"VulnCheck"}],"applicability":[{"source":"VulnCheck","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*","versionEndExcluding":"1.1.1"},{"vulnerable":true,"criteria":"cpe:2.3:a:delskayn:rquickjs:*:*:*:*:*:*:*:*","versionEndExcluding":"0.4.2"}]}]}]}],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-07-20T15:13:39.140208Z","decisions":[{"name":"Exploitation","value":"none"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"total"}]}]},"title":"SurrealDB before 1.1.1 Format String via Scripting Functions","titleSource":"VulnCheck","descriptionSource":"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.","score":9,"severity":"critical","published":"2026-07-18T13:10:06.939Z","modified":"2026-10-29T21:15:09.355Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"surrealdb","name":"surrealdb","platforms":[],"versions":[{"version":"0","status":"affected","lessThan":"1.1.1","versionType":"semver"},{"version":"1.1.1","status":"unaffected","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:cargo/surrealdb","packageIdentity":{"ecosystem":"crates.io","name":"surrealdb"},"cpes":[],"source":"VulnCheck","url":"https://www.cve.org/CVERecord?id=CVE-2024-58366"},{"vendor":"DelSkayn","name":"rquickjs","platforms":[],"versions":[{"version":"0","status":"affected","lessThan":"0.4.2","versionType":"semver"},{"version":"0.4.2","status":"unaffected","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:cargo/rquickjs","packageIdentity":{"ecosystem":"crates.io","name":"rquickjs"},"cpes":[],"source":"VulnCheck","url":"https://www.cve.org/CVERecord?id=CVE-2024-58366"}],"remediation":[],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-q3gg-m8hr-h4x4","https://www.vulncheck.com/advisories/surrealdb-before-format-string-via-scripting-functions"],"sources":[{"name":"CVE","id":"CVE-2024-58366","modified":"2026-10-29T21:15:09.355Z","url":"https://www.cve.org/CVERecord?id=CVE-2024-58366"}],"assessments":[{"source":"VulnCheck","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},{"source":"VulnCheck","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.5}],"sourceAffected":[],"observedAt":"2026-10-29T21:38:50.968Z","kev":{"status":"not-listed","checkedAt":"2026-10-31T13:55:32.867Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-10-30T01:00:32.866Z","attemptedAt":"2026-10-30T01:00:32.866Z"},{"source":"GHSA","status":"available","checkedAt":"2026-10-30T01:00:32.870Z","attemptedAt":"2026-10-30T01:00:32.870Z"},{"source":"EUVD","status":"available","checkedAt":"2026-10-30T01:00:33.835Z","attemptedAt":"2026-10-30T01:00:33.835Z"},{"source":"EPSS","status":"available","checkedAt":"2026-10-30T01:00:32.870Z","attemptedAt":"2026-10-30T01:00:32.870Z"}],"evidence":[{"source":"NVD","id":"CVE-2024-58366","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58366","modified":"2026-10-29T21:17:03.447","score":9,"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/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","checkedAt":"2026-10-30T01:00:32.866Z"},{"source":"NVD","id":"CVE-2024-58366","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58366","modified":"2026-10-29T21:17:03.447","score":8.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","checkedAt":"2026-10-30T01:00:32.866Z"},{"source":"NVD","id":"CVE-2024-58366","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58366","modified":"2026-10-29T21:17:03.447","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","checkedAt":"2026-10-30T01:00:32.866Z"},{"source":"GitHub Advisory Database","id":"GHSA-qcfm-cmfw-f4x4","url":"https://github.com/advisories/GHSA-qcfm-cmfw-f4x4","modified":"2026-07-18T15:31:56Z","score":8.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","checkedAt":"2026-10-30T01:00:32.870Z"},{"source":"FIRST EPSS","id":"CVE-2024-58366","url":"https://www.first.org/epss/","probability":0.00575,"percentile":0.47369,"date":"2026-10-29","checkedAt":"2026-10-30T01:00:32.870Z"},{"source":"ENISA EUVD","id":"EUVD-2024-55682","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-55682","modified":"Oct 29, 2026, 9:15:09 PM","score":9,"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","checkedAt":"2026-10-30T01:00:33.835Z"}],"aiSummary":{"text":"SurrealDB before 1.1.1 has a format string vulnerability in the rquickjs Exception::throw_type function when scripting is enabled, allowing attackers with scripting privileges to read arbitrary memory or execute code. Affected versions are less than 1.1.1. The weakness is a use of externally-controlled format string.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-10-30T09:38:37.570Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2024-58366"}]}}