{"id":"GHSA-3v2x-9xcv-2v2v","revision":null,"records":[{"revision":"f488aa9c012f4d4b87b9243228187fe5","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-63763","aliases":[],"title":"SurrealDB before 2.5.0 Privilege Escalation via Future Fields","description":"SurrealDB before 2.5.0 and before 3.0.0-beta.3 contains a confused deputy privilege escalation vulnerability. Unprivileged users (e.g., those with the database editor role) can create or modify fields containing futures, functions, or closures. Because these are executed in the context of the invoking/querying user rather than their creator, an attacker can plant malicious logic that executes with a higher-privileged user's permissions when that user reads or writes the affected record. This can lead to full privilege escalation, including creation of a root owner and server takeover.","state":0,"publishedAt":"2026-07-20T12:04:52.407+00:00","modifiedAt":"2026-07-28T01:05:52.965+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\": \"2.5.0\"\n                        },\n                        {\n                            \"version\": \"2.5.0\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"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\": \"3.0.0-alpha.1\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"3.0.0-beta.3\"\n                        },\n                        {\n                            \"version\": \"3.0.0-beta.3\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.5,"severity":"HIGH"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-3v2x-9xcv-2v2v","https://www.vulncheck.com/advisories/surrealdb-before-privilege-escalation-via-future-fields"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-63763","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-63763","identifiers":["CVE-2026-63763"]},"retained":false,"historicalAffected":[]},{"revision":"bc71d85556b643c8bbc0f41678a77a82","observedAt":"2026-11-23T18:32:16.638+00:00","statement":{"source":"euvd","id":"EUVD-2026-45934","aliases":["CVE-2026-63763","GHSA-5w8c-cvwv-f5px"],"title":"SurrealDB before 2.5.0 and before 3.0.0-beta.3 contains a confused deputy privilege escalation vulnerability. Unprivileged users (e.g., those with the database editor role) can create or modify fields containing futures, functions, or closu…","description":"SurrealDB before 2.5.0 and before 3.0.0-beta.3 contains a confused deputy privilege escalation vulnerability. Unprivileged users (e.g., those with the database editor role) can create or modify fields containing futures, functions, or closures. Because these are executed in the context of the invoking/querying user rather than their creator, an attacker can plant malicious logic that executes with a higher-privileged user's permissions when that user reads or writes the affected record. This can lead to full privilege escalation, including creation of a root owner and server takeover.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.5,"severity":null}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-3v2x-9xcv-2v2v","https://www.vulncheck.com/advisories/surrealdb-before-privilege-escalation-via-future-fields"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-45934","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jul 20, 2026, 12:04:52 PM","dateUpdated":"Jul 28, 2026, 1:05:52 AM"},"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-45934","identifiers":["EUVD-2026-45934","CVE-2026-63763","GHSA-5w8c-cvwv-f5px"]},"retained":false,"historicalAffected":[]},{"revision":"bd7b82975f024c62a15ce215d33ba5a9","observedAt":"2026-10-25T15:18:45.851+00:00","statement":{"source":"nvd","id":"CVE-2026-63763","aliases":[],"title":"SurrealDB before 2.5.0 and before 3.0.0-beta.3 contains a confused deputy privilege escalation vulnerability. Unprivileged users (e.g., those with the database editor role) can create or modify fields containing futures, functions, or closu…","description":"SurrealDB before 2.5.0 and before 3.0.0-beta.3 contains a confused deputy privilege escalation vulnerability. Unprivileged users (e.g., those with the database editor role) can create or modify fields containing futures, functions, or closures. Because these are executed in the context of the invoking/querying user rather than their creator, an attacker can plant malicious logic that executes with a higher-privileged user's permissions when that user reads or writes the affected record. This can lead to full privilege escalation, including creation of a root owner and server takeover.","state":0,"publishedAt":"2026-07-20T12:19:46.623+00:00","modifiedAt":"2026-07-22T19:40:00.72+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · disclosure@vulncheck.com · Secondary","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/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":7.5,"severity":"HIGH"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"severity":"HIGH"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-3v2x-9xcv-2v2v","https://www.vulncheck.com/advisories/surrealdb-before-privilege-escalation-via-future-fields"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-63763","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-639"],"productCriteria":["cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha1:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha10:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha11:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha12:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha13:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha14:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha16:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha17:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha18:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha2:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha3:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha4:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha5:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha6:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha7:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha8:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:alpha9:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:beta1:*:*:*:*:*:*","cpe:2.3:a:surrealdb:surrealdb:3.0.0:beta2:*:*:*:*:*:*"],"sourceDates":{"published":"2026-07-20T12:19:46.623","lastModified":"2026-07-22T19:40:00.720"},"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-63763","identifiers":["CVE-2026-63763"]},"retained":false,"historicalAffected":[]},{"revision":"44360dc2f73441978234a9b055545d9f","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-3v2x-9xcv-2v2v","aliases":["CVE-2026-63763"],"title":"SurrealDB Affected by Confused Deputy Privilege Escalation through Future Fields and Functions","description":"Unprivileged users (for example, those with the database editor role) can create or modify fields in records that contain functions or `futures`. `Futures` are values which are only computed when the value is queried. The query executes in the context of the querying user, rather than the user who originally defined the future. Likewise, fields containing functions or custom-defined logic (`closures`) are executed under the privileges of the invoking user, not the creator.\n\nThis results in a confused deputy vulnerability: an attacker with limited privileges can define a malicious function or future field that performs privileged actions. When a higher-privileged user (such as a root owner or namespace administrator) executes the function or queries or modifies that record, the function executes with their elevated permissions. \n\n### Impact\nAn attacker who can create or update function/future fields can plant logic that executes with a privileged user’s context. If a privileged user performs a write that touches the malicious field, the attacker can achieve full privilege escalation (e.g., create a root owner and take over the server). \n\nIf a privileged user performs a read action on the malicious field, this attack vector could still be potentially be used to perform limited denial of service or, in the specific case where the network capability was explicitly enabled and unrestricted, exfiltrate database information over the network.\n\n### Patches\n\nVersions prior to 2.5.0 and 3.0.0-beta.3 are vulnerable.\n\nFor SurrealDB 3.0, `futures` are no longer supported, replaced by `computed`  fields, only available within schemaful tables. \n\nFurther to this patches for 2.5.0 and 3.0.0-beta.3: \n- Implements an `auth_limit` on defined apis, functions, fields and events, that limits execution to the permissions of the creating user or the invoking user, whichever is lower.\n- Prevents `closures` from being stored, that eliminates a potential attack surface. For 2.5.0 this can still be allowed by using the `insecure_storable_closures` capability\n- Ensures the proper auth level is used to compute expressions in signin & signup\n\n**_For existing apis, events, fields and functions defined prior to upgrading to 2.5.0 or 3.0.0-beta.3 `auth_limit` will not apply, to avoid breaking changes. These will need to subsequently be redefined so that `auth_limit` can take effect._**\n\n### Workarounds\nUsers unable to patch are advised to evaluate their use of the database to identify where low privileged users are able to define logic subsequently executed by privileged users, such as apis, functions, futures fields and events, and recommended to minimise these instances.\n\n### References\n[Futures](https://surrealdb.com/docs/surrealql/datamodel/futures)\n[Closures](https://surrealdb.com/docs/surrealql/datamodel/closures)\n[SurrealDB Environment Variables](https://surrealdb.com/docs/surrealdb/cli/env)","state":0,"publishedAt":"2026-01-22T18:06:15+00:00","modifiedAt":"2026-07-21T03:56:44.9783354+00:00","affected":[{"ecosystem":"crates.io","name":"surrealdb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.5.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"surrealdb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.0.0-alpha.1"},{"kind":"fixed","version":"3.0.0-beta.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-3v2x-9xcv-2v2v","https://github.com/surrealdb/surrealdb/commit/f515c91363ee735aa1bc08580d9e7fa0de6e736f","https://github.com/surrealdb/surrealdb","https://github.com/surrealdb/surrealdb/releases/tag/v2.5.0","https://github.com/surrealdb/surrealdb/releases/tag/v3.0.0-beta.2"],"sourceUrl":"https://github.com/advisories/GHSA-3v2x-9xcv-2v2v","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-3v2x-9xcv-2v2v","identifiers":["GHSA-3v2x-9xcv-2v2v","CVE-2026-63763"]},"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-24T00:27:04.8333678+00:00","complete":true,"records":1792,"lastAttemptAt":"2026-11-24T00:27:04.8333678+00:00","lastSuccessAt":"2026-11-24T00:27:04.9913295+00:00","error":null,"lastVerifiedAt":"2026-11-24T00:27:04.9913297+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-d008fb8e7e5a0f37166ee57a6d9d22b27e49b9d9438b4ce80c4c6c326ac5d75a-554e166bfb46b0e888dc25be30a0b70920da9e8678264ee2b4eaf5db349f6a7c","complete":true,"records":430939,"lastAttemptAt":"2026-11-24T00:25:28.0993159+00:00","lastSuccessAt":"2026-11-23T23:25:46.8241868+00:00","error":null,"lastVerifiedAt":"2026-11-24T00:25:28.0993159+00:00","snapshotPublishedAt":"2026-11-23T23:24:16+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-93cb907c224e4d2bbfc6ee556d074913","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T00:37:01.9866412+00:00","lastSuccessAt":"2026-11-24T00:37:01.982+00:00","error":"358 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T00:37:01.982+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13275,"expectedIdentifiers":13982,"failedIdentifiers":358},{"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-24T00:27:04.8333678+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T00:27:04.8333678+00:00","lastSuccessAt":"2026-11-24T00:27:04.9920772+00:00","error":null,"lastVerifiedAt":"2026-11-24T00:27:04.9920773+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-ed770756be9a4352b48b02cf24a56efc","complete":false,"records":13947,"lastAttemptAt":"2026-11-24T00:27:30.2594598+00:00","lastSuccessAt":"2026-11-24T00:27:30.256+00:00","error":null,"lastVerifiedAt":"2026-11-24T00:27:30.256+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13582,"expectedIdentifiers":13982,"failedIdentifiers":0},{"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-c86437892ddabdeaf17409463a17578b1e71dd185d64061100dd57629858f6d6","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T00:27:04.7887425+00:00","lastSuccessAt":"2026-11-23T22:27:19.6557603+00:00","error":null,"lastVerifiedAt":"2026-11-24T00:27:04.7887425+00:00","snapshotPublishedAt":"2026-11-23T21:33:52+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-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T00:25:28.1442731+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T00:25:28.1442731+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+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-15e801f03affdaac7ba10268556f4d0b3e1b9f897dae85fdcade5fc30d25011c","complete":true,"records":3217,"lastAttemptAt":"2026-11-24T00:27:04.8011105+00:00","lastSuccessAt":"2026-11-23T17:27:41.2539213+00:00","error":null,"lastVerifiedAt":"2026-11-24T00:27:04.8011105+00:00","snapshotPublishedAt":"2026-11-23T16:18:20+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-c41399423d276dca4b043be850730e8108fe6ab724d5bef1a99daeb4f8074e30","complete":true,"records":232938,"lastAttemptAt":"2026-11-24T00:27:04.6655374+00:00","lastSuccessAt":"2026-11-24T00:27:03.6308807+00:00","error":null,"lastVerifiedAt":"2026-11-24T00:27:04.6655374+00:00","snapshotPublishedAt":"2026-11-23T23:48:45+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}