{"id":"CVE-2026-121417","state":"PUBLISHED","title":"SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends","description":"SurrealDB before 3.3.0 contains a use-after-free vulnerability in surrealdb-core KV backends that pass borrowed transaction state into affinitypool::spawn_local closures relying on future Drop for safety. Rust embedders that leak a dispatched future (e.g. via mem::forget) and drop the transaction cause pool workers to read and write freed memory, risking crashes or memory corruption.","publishedAt":"2026-11-03T14:28:15.135Z","updatedAt":"2026-11-03T17:06:36.341Z","severity":{"score":8.8,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","source":"VulnCheck"},"assigner":"VulnCheck","products":["surrealdb surrealdb"],"affected":[{"vendor":"surrealdb","product":"surrealdb","packageURL":"pkg:cargo/surrealdb","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.3.0","versionType":"semver"},{"version":"3.3.0","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-pm86-cc75-q463","https://github.com/surrealdb/surrealdb/commit/17584a181979f04f2aaad867332c22db1caa511a","https://www.vulncheck.com/advisories/surrealdb-before-3.3.0-use-after-free-via-affinitypool-spawn-local-in-kv-backends"],"weaknesses":["CWE-416"],"ingestedAt":"2026-11-03T17:14:06.872Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/121xxx/CVE-2026-121417.json","commit":"a6d9bdfd1439ddc8fa9c4c13f9e64f9805acdcff","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-121417","state":"PUBLISHED","datePublished":"2026-11-03T14:28:15.135Z","dateUpdated":"2026-11-03T17:06:36.341Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-03T12:29:41.359Z"},"containers":{"cna":{"title":"SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends","descriptions":[{"lang":"en","value":"SurrealDB before 3.3.0 contains a use-after-free vulnerability in surrealdb-core KV backends that pass borrowed transaction state into affinitypool::spawn_local closures relying on future Drop for safety. Rust embedders that leak a dispatched future (e.g. via mem::forget) and drop the transaction cause pool workers to read and write freed memory, risking crashes or memory corruption."}],"affected":[{"vendor":"surrealdb","product":"surrealdb","packageURL":"pkg:cargo/surrealdb","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.3.0","versionType":"semver"},{"version":"3.3.0","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-pm86-cc75-q463","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-pm86-cc75-q463)"},{"url":"https://github.com/surrealdb/surrealdb/commit/17584a181979f04f2aaad867332c22db1caa511a","tags":["patch"],"name":"Patch Commit"},{"url":"https://www.vulncheck.com/advisories/surrealdb-before-3.3.0-use-after-free-via-affinitypool-spawn-local-in-kv-backends","name":"VulnCheck Advisory: SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","attackVector":"LOCAL","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","subAvailabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","description":"Use After Free","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-03T14:28:15.135Z"},"datePublic":"2026-10-19T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*","versionEndExcluding":"3.3.0"}]}]}],"credits":[{"lang":"en","value":"YZL0v3ZZ","type":"reporter"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-pm86-cc75-q463","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-03T17:06:00.194955Z","id":"CVE-2026-121417","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-03T17:06:36.341Z"}}]}}}