{"answers":{"affected":"2 open source packages ship an affected version, including surrealdb. It affects 2 products.","exploited":"There is no known exploitation of CVE-2024-58366 in the wild and no public exploit code.","fix":"Upgrade surrealdb to 1.1.1 or later.","what":"CVE-2024-58366 is a critical vulnerability in Surrealdb Surrealdb, published on 18 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-58366 and fix it if it is affected.\n\nWhat it is: CVE-2024-58366 is a critical vulnerability in Surrealdb Surrealdb, published on 18 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-58366 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- surrealdb (crates.io): affected all versions; fixed in 1.1.1\n- surrealdb (crates.io): affected all versions; fixed in 1.1.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-58366/ (Markdown: https://insights.sbomify.com/CVE-2024-58366/index.md)","id":"CVE-2024-58366","markdown":"https://insights.sbomify.com/CVE-2024-58366/index.md","name":"CVE-2024-58366","record":{"aliases":["GHSA-q3gg-m8hr-h4x4","GHSA-qcfm-cmfw-f4x4"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"SurrealDB database","requires_auth":"low_privilege","summary":"Attackers with scripting privileges can exploit a format string vulnerability in SurrealDB to read arbitrary memory or execute code.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[{"product":"rquickjs","vendor":"delskayn"},{"product":"surrealdb","vendor":"surrealdb"}],"cvss":{"score":9,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-134","name":"Use of Externally-Controlled Format String"}],"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.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"SurrealDB before 1.1.1 Format String via Scripting Functions","id":"CVE-2024-58366","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":"surrealdb:surrealdb","products":["surrealdb:surrealdb"],"type":"other","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"SurrealDB before 2.0.4 Improper Authorization via SELECT Permissions","id":"CVE-2024-58367"},"packages":[{"ecosystem":"crates.io","fixed":["1.1.1"],"introduced":["0"],"last_affected":[],"package":"surrealdb","purl":null,"source":"GHSA-q3gg-m8hr-h4x4"},{"ecosystem":"crates.io","fixed":["1.1.1"],"introduced":["0"],"last_affected":[],"package":"surrealdb","purl":"pkg:cargo/surrealdb","source":"GHSA-q3gg-m8hr-h4x4"}],"prev":{"headline":"SurrealDB before 1.2.0 Denial of Service via Nonexistent Function","id":"CVE-2024-58365"},"products":["rquickjs","surrealdb"],"published":"2026-07-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-29","vendors":["DelSkayn","surrealdb"]},"summary":"Attackers with scripting privileges can exploit a format string vulnerability in SurrealDB to read arbitrary memory or execute code.","url":"https://insights.sbomify.com/CVE-2024-58366/"}