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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58366.json",
"unresolved_ranges": [
{
"source": "AFFECTED_FIELD",
"extracted_events": [
{
"fixed": "0.4.2"
}
]
}
],
"cwe_ids": [
"CWE-134"
],
"cna_assigner": "VulnCheck"
}{
"cpe": "cpe:2.3:a:delskayn:rquickjs:*:*:*:*:*:rust:*:*",
"source": "CPE_RANGE",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "0.4.2"
}
]
}
{
"cpe": "cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*",
"source": [
"AFFECTED_FIELD",
"CPE_RANGE"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.1.1"
}
]
}