CVE-2026-121417
published high CVSS 4.0 · 8.8SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| surrealdb | — | surrealdb0 to < 3.3.0 (affected · semver) · 3.3.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| surrealdb | surrealdb | 0 to < 3.3.0 (affected · semver)3.3.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-416 Use After Free
References
3- Patch Commit https://github.com/surrealdb/surrealdb/commit/17584a181979f04f2aaad867332c22db1caa511a
- GitHub Security Advisory (GHSA-pm86-cc75-q463) https://github.com/surrealdb/surrealdb/security/advisories/GHSA-pm86-cc75-q463
- VulnCheck Advisory: SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends https://www.vulncheck.com/advisories/surrealdb-before-3.3.0-use-after-free-via-affinitypool-spawn-local-in-kv-backends
Provider assertions
2VulnCheck · cna
SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 19d79faf0e6c472998d7cdcc56e03543a58ac23d702ba20068933be7ac2a52ed
- Ingested
- 03 Nov 2026, 17:14:56 UTC
- Source record
- Official CVE record