{"id":"GHSA-pm86-cc75-q463","revision":null,"records":[{"revision":"d00e64569a044af2ae66454a4eb58d18","observedAt":"2026-11-03T18:57:17.232+00:00","statement":{"source":"cve-program","id":"CVE-2026-121417","aliases":[],"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.","state":0,"publishedAt":"2026-11-03T14:28:15.135+00:00","modifiedAt":"2026-11-03T17:06:36.341+00:00","affected":[{"ecosystem":"Vendor product","name":"surrealdb","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"surrealdb\",\n                    \"product\": \"surrealdb\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:cargo/surrealdb\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"3.3.0\"\n                        },\n                        {\n                            \"version\": \"3.3.0\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 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","score":8.8,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-121417","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-121417","identifiers":["CVE-2026-121417"]},"retained":false,"historicalAffected":[]},{"revision":"5e4560e51a41457f960f2b39c7590c31","observedAt":"2026-11-16T17:51:17.994+00:00","statement":{"source":"euvd","id":"EUVD-2026-115949","aliases":["CVE-2026-121417","GHSA-7wmw-j7vc-669r"],"title":"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 dispatch…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 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","score":8.8,"severity":null}],"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"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-115949","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Nov 3, 2026, 2:28:15 PM","dateUpdated":"Nov 3, 2026, 5:06:36 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-115949","identifiers":["EUVD-2026-115949","CVE-2026-121417","GHSA-7wmw-j7vc-669r"]},"retained":false,"historicalAffected":[]},{"revision":"b06919cab54d4c6c9cb669091122196c","observedAt":"2026-11-06T16:03:02.573+00:00","statement":{"source":"nvd","id":"CVE-2026-121417","aliases":[],"title":"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 dispatch…","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.","state":0,"publishedAt":"2026-11-03T15:17:31.553+00:00","modifiedAt":"2026-11-03T17:18:08.963+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · disclosure@vulncheck.com · Secondary","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/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","score":8.8,"severity":"HIGH"},{"system":"CVSS 3.1 · disclosure@vulncheck.com · Secondary","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://github.com/surrealdb/surrealdb/commit/17584a181979f04f2aaad867332c22db1caa511a","https://github.com/surrealdb/surrealdb/security/advisories/GHSA-pm86-cc75-q463","https://www.vulncheck.com/advisories/surrealdb-before-3.3.0-use-after-free-via-affinitypool-spawn-local-in-kv-backends"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-121417","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-416"],"productCriteria":[],"sourceDates":{"published":"2026-11-03T15:17:31.553","lastModified":"2026-11-03T17:18:08.963"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-121417","identifiers":["CVE-2026-121417"]},"retained":false,"historicalAffected":[]},{"revision":"e6ac79075aea4c70974bea72adb57a62","observedAt":"2026-11-06T16:02:55.324+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0453","aliases":["CVE-2026-121417","GHSA-pm86-cc75-q463"],"title":"Use-after-free in KV backends via leaked `affinitypool::spawn_local` future","description":"The `kv-mem`, `kv-surrealkv` and `kv-rocksdb` backends move non-`'static` borrowed state into affinity-pool closures through `affinitypool::spawn_local`: a `tokio::sync::MutexGuard<Option<TransactionInner>>`, `&Transaction`, `&mut ScanStateKeys/Vals`, `&mut dyn KeyVisitor/ValVisitor`, `RwLockReadGuard`, and a `ReadOptions` holding a raw `rocksdb_snapshot_t*`. In `affinitypool 0.7.0` `spawn_local` is safe and erases the `'pool` lifetime via `async_task::Builder::spawn_unchecked`; the only thing keeping it sound is the `Drop` implementation of the returned future, which blocks until the worker stops using the borrows.\n\nSafe code can leak that future (`mem::forget`, `Box::leak`, `ManuallyDrop`, a reference cycle, or a leaked enclosing future). The borrows then end while the pool worker still uses them, producing a use-after-free on the transaction allocation; AddressSanitizer reports a read of freed mutex data and a write when the worker unlocks the freed `tokio::sync::Mutex` on the pool thread. No `unsafe` is required at the call site, and the affected methods include `count`, `keys`/`keysr`, `scan`/`scanr`, `compact`, shutdown, point reads and writes, and cursor iteration.\n\n3.3.0 upgrades to `affinitypool 0.8.0`, where `spawn_local` is an `unsafe` function and the caller must uphold the leak-freedom invariant (commit `8156ff69`).","state":0,"publishedAt":"2026-10-19T12:00:00+00:00","modifiedAt":"2026-11-06T15:55:56.7542849+00:00","affected":[{"ecosystem":"crates.io","name":"surrealdb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"3.3.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":null,"severity":null}],"references":["https://crates.io/crates/surrealdb","https://rustsec.org/advisories/RUSTSEC-2026-0453.html","https://github.com/surrealdb/surrealdb/commit/8156ff691b1861814199e5e3372c81609b68db7f"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0453","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0453","identifiers":["RUSTSEC-2026-0453","CVE-2026-121417","GHSA-pm86-cc75-q463"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-16T19:49:13.1105307+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T19:49:13.1105307+00:00","lastSuccessAt":"2026-11-16T19:49:13.4533812+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:49:13.453382+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-e09c5477ba50bf2254e63f220cd9c2cef8568b339276623f33b4dca70420aa16","complete":true,"records":426144,"lastAttemptAt":"2026-11-16T19:45:16.1599213+00:00","lastSuccessAt":"2026-11-16T19:45:15.8431897+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:45:16.1599213+00:00","snapshotPublishedAt":"2026-11-16T19:27:36+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b72699d4314c4ae59a44f2a112632c6a","complete":true,"records":13831,"lastAttemptAt":"2026-11-16T19:50:25.5906483+00:00","lastSuccessAt":"2026-11-16T19:50:25.585+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:50:25.585+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13884,"expectedIdentifiers":13884,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-16T19:49:13.1105307+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T19:49:13.1105307+00:00","lastSuccessAt":"2026-11-16T19:49:13.454543+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:49:13.4545436+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-18f9549cc6dd4c31a2f2ad096749b50a","complete":false,"records":13843,"lastAttemptAt":"2026-11-16T19:50:24.6419003+00:00","lastSuccessAt":"2026-11-16T19:50:24.638+00:00","error":"110 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T19:50:24.638+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13774,"expectedIdentifiers":13884,"failedIdentifiers":110},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T19:49:12.9411292+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:49:12.9411292+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T19:45:17.7082288+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:45:17.7082288+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T19:49:13.0618281+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:49:13.0618281+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-d5fa623aa60e2b62f884ac48fe978b3d571f7aff90dc5b8ac0737f208ea29f11","complete":true,"records":232543,"lastAttemptAt":"2026-11-16T19:49:12.77932+00:00","lastSuccessAt":"2026-11-16T19:49:11.8138233+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:49:12.77932+00:00","snapshotPublishedAt":"2026-11-16T19:33:28+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}