{"id":"GHSA-848m-r628-vrxw","revision":null,"records":[{"revision":"e20f6d2bb46548099dbae35492eccbf4","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-63735","aliases":[],"title":"SurrealDB before 3.2.0 Authentication Bypass via Custom API","description":"SurrealDB versions before 3.2.0 fail to validate namespace and database scope in custom API routes, allowing authenticated users to invoke endpoints in different namespaces/databases. Attackers with valid credentials for any namespace/database can access custom API endpoints in other tenants by specifying the target scope in the URL path, reading sensitive data or triggering unintended operations.","state":0,"publishedAt":"2026-07-20T12:04:31.479+00:00","modifiedAt":"2026-07-28T01:05:33.142+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.2.0\"\n                        },\n                        {\n                            \"version\": \"3.2.0\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.6,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"severity":"HIGH"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-848m-r628-vrxw","https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-custom-api"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-63735","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-63735","identifiers":["CVE-2026-63735"]},"retained":false,"historicalAffected":[]},{"revision":"81f660bdbcf5488296a0444e639aa4ec","observedAt":"2026-11-18T04:38:11.611+00:00","statement":{"source":"euvd","id":"EUVD-2026-45906","aliases":["CVE-2026-63735","GHSA-3f6w-45q9-v69m","GHSA-848m-r628-vrxw"],"title":"SurrealDB versions before 3.2.0 fail to validate namespace and database scope in custom API routes, allowing authenticated users to invoke endpoints in different namespaces/databases. Attackers with valid credentials for any namespace/datab…","description":"SurrealDB versions before 3.2.0 fail to validate namespace and database scope in custom API routes, allowing authenticated users to invoke endpoints in different namespaces/databases. Attackers with valid credentials for any namespace/database can access custom API endpoints in other tenants by specifying the target scope in the URL path, reading sensitive data or triggering unintended operations.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.6,"severity":null}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-848m-r628-vrxw","https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-custom-api"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-45906","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jul 20, 2026, 12:04:31 PM","dateUpdated":"Jul 28, 2026, 1:05:33 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-45906","identifiers":["EUVD-2026-45906","CVE-2026-63735","GHSA-3f6w-45q9-v69m","GHSA-848m-r628-vrxw"]},"retained":false,"historicalAffected":[]},{"revision":"fec0f388388a4f9296a7668d08efb8c9","observedAt":"2026-10-25T15:18:45.851+00:00","statement":{"source":"nvd","id":"CVE-2026-63735","aliases":[],"title":"SurrealDB versions before 3.2.0 fail to validate namespace and database scope in custom API routes, allowing authenticated users to invoke endpoints in different namespaces/databases. Attackers with valid credentials for any namespace/datab…","description":"SurrealDB versions before 3.2.0 fail to validate namespace and database scope in custom API routes, allowing authenticated users to invoke endpoints in different namespaces/databases. Attackers with valid credentials for any namespace/database can access custom API endpoints in other tenants by specifying the target scope in the URL path, reading sensitive data or triggering unintended operations.","state":0,"publishedAt":"2026-07-20T12:19:42.563+00:00","modifiedAt":"2026-07-23T20:17:20.513+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · disclosure@vulncheck.com · Secondary","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/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":8.6,"severity":"HIGH"},{"system":"CVSS 3.1 · disclosure@vulncheck.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"severity":"HIGH"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-848m-r628-vrxw","https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-custom-api"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-63735","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-639"],"productCriteria":["cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-07-20T12:19:42.563","lastModified":"2026-07-23T20:17:20.513"},"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-63735","identifiers":["CVE-2026-63735"]},"retained":false,"historicalAffected":[]},{"revision":"30fc9c92e3044a91bd83589047897b48","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-3f6w-45q9-v69m","aliases":[],"title":"Duplicate Advisory: Custom API route lets authenticated callers override namespace/database scope via URL path","description":"## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of\u00A0GHSA-848m-r628-vrxw. This link is maintained to preserve external references.\n\n## Original Description\nSurrealDB versions before 3.2.0 fail to validate namespace and database scope in custom API routes, allowing authenticated users to invoke endpoints in different namespaces/databases. Attackers with valid credentials for any namespace/database can access custom API endpoints in other tenants by specifying the target scope in the URL path, reading sensitive data or triggering unintended operations.","state":2,"publishedAt":"2026-07-20T12:33:08+00:00","modifiedAt":"2026-09-04T20:15:06.1695259+00:00","affected":[{"ecosystem":"crates.io","name":"surrealdb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/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":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-848m-r628-vrxw","https://nvd.nist.gov/vuln/detail/CVE-2026-63735","https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-custom-api"],"sourceUrl":"https://github.com/advisories/GHSA-3f6w-45q9-v69m","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-3f6w-45q9-v69m","identifiers":["GHSA-3f6w-45q9-v69m"]},"retained":false,"historicalAffected":[]},{"revision":"f8373ebbf879406e84a7731bb8b871e3","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-848m-r628-vrxw","aliases":["CVE-2026-63735"],"title":"SurrealDB: Custom API route lets authenticated callers override namespace/database scope via URL path","description":"An authenticated user scoped to one namespace/database could invoke a custom API (`DEFINE API`) belonging to a different namespace/database, reaching another tenant's endpoint.\n\nThe route `/api/{namespace}/{database}/{endpoint}` took the namespace and database from the URL and applied them to the caller's session before the endpoint was looked up or run, without checking that the caller's authenticated scope covered them. Because a custom API handler runs with permissions disabled (definer's rights), the endpoint's own `PERMISSIONS` clause was the only gate — open to everyone for a `PERMISSIONS FULL` endpoint. The `api::invoke()` function was affected the same way, resolving against the session's selected namespace/database (settable via the `surreal-ns` / `surreal-db` headers or `USE`).\n\n### Impact\n\nWhat an attacker **can** do:\n\n- With valid credentials for any one namespace/database (a `VIEWER` is enough), invoke a custom API in another namespace/database by naming the victim scope in the URL.\n- Read data that endpoint returns — including from `PERMISSIONS NONE` tables, since the handler runs with permissions disabled — or trigger any writes and side effects it performs.\n\nWhat it **can't** do:\n\n- Reach a scope without valid credentials for some namespace/database on the instance; this is not an unauthenticated bypass.\n- Affect single-tenant deployments, or any deployment where callers already hold instance-wide (root) scope.\n\n### Patches\n\nThe namespace/database is now validated against the caller's authenticated level — which the request cannot change — before the endpoint is resolved or run. A target scope outside that level is rejected with `403 Forbidden`, both at the HTTP entry point and at the dispatch step shared with `api::invoke()`. Root reaches any scope; namespace principals their namespace; database and record principals their exact namespace/database; anonymous callers remain governed by the endpoint's `PERMISSIONS`.\n\n- Versions 3.2.0 and later are not affected by this issue.\n\n### Workarounds\n\nUsers unable to patch should consider the following workarounds:\n\n- Disable the custom API HTTP route via capabilities where it is not required.\n- Treat separate deployments, not namespace/database boundaries, as the tenant isolation boundary on shared instances.\n- Prefer a `PERMISSIONS WHERE` clause that checks the authenticated identity over `PERMISSIONS FULL` (reduces exposure but does not restore the boundary).\n\n### Resources\n\n- [SurrealQL Documentation — DEFINE API](https://surrealdb.com/docs/surrealql/statements/define/api)\n- [SurrealDB Documentation — Capabilities](https://surrealdb.com/docs/surrealdb/security/capabilities)\n- `fix(core/api): reject cross-tenant custom API access` (included in SurrealDB 3.2.0)\n\n### Acknowledgements\n\nSurrealDB thanks [sondt99](https://github.com/sondt99) for reporting this issue.","state":0,"publishedAt":"2026-09-04T20:07:07+00:00","modifiedAt":"2026-09-04T20:25:35.673187+00:00","affected":[{"ecosystem":"crates.io","name":"surrealdb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.2.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-848m-r628-vrxw","https://nvd.nist.gov/vuln/detail/CVE-2026-63735","https://github.com/surrealdb/surrealdb/commit/0938f88d196dc4eb11a82af343df3fffe9c195e2","https://github.com/surrealdb/surrealdb/commit/75b7154f84904d047619b5a47b08d256254dceca","https://github.com/surrealdb/surrealdb","https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-custom-api"],"sourceUrl":"https://github.com/advisories/GHSA-848m-r628-vrxw","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-848m-r628-vrxw","identifiers":["GHSA-848m-r628-vrxw","CVE-2026-63735"]},"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-19T13:59:38.0220724+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T13:59:38.0220724+00:00","lastSuccessAt":"2026-11-19T13:59:38.3751697+00:00","error":null,"lastVerifiedAt":"2026-11-19T13:59:38.3753216+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-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-139b33c18373676a973fe9182aec8a3691d9b11c7b42e245543a606871b8ef68","complete":true,"records":428483,"lastAttemptAt":"2026-11-19T13:59:36.944265+00:00","lastSuccessAt":"2026-11-19T13:40:15.6982314+00:00","error":null,"lastVerifiedAt":"2026-11-19T13:59:36.944265+00:00","snapshotPublishedAt":"2026-11-19T13:24:02+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-ae6c004e7d4446a3b24b12d5e4f85da8","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T14:05:06.3953584+00:00","lastSuccessAt":"2026-11-19T14:05:06.391+00:00","error":"238 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T14:05:06.391+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13670,"expectedIdentifiers":13908,"failedIdentifiers":238},{"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-19T13:59:38.0220724+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T13:59:38.0220724+00:00","lastSuccessAt":"2026-11-19T13:59:38.4804896+00:00","error":null,"lastVerifiedAt":"2026-11-19T13:59:38.4804901+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-66078286355a487e841d6e6e3b3f67f3","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T13:59:39.8610471+00:00","lastSuccessAt":"2026-11-19T13:41:59.829+00:00","error":null,"lastVerifiedAt":"2026-11-19T13:41:59.829+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"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-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T13:59:37.4102656+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T13:59:37.4102656+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+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-19T13:59:37.1621626+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T13:59:37.1621626+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-313d8afdba3867de110bc2f0cc252c7b787cb94e08a055d09b0542017e147ca8","complete":true,"records":3194,"lastAttemptAt":"2026-11-19T13:59:37.5525506+00:00","lastSuccessAt":"2026-11-19T09:40:31.5988269+00:00","error":null,"lastVerifiedAt":"2026-11-19T13:59:37.5525506+00:00","snapshotPublishedAt":"2026-11-19T09:03:08+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-e2a5d5b457bf00210b88384778af42f87dedd32a57cbf9118572d3d2fabc062c","complete":true,"records":232733,"lastAttemptAt":"2026-11-19T13:59:37.2994305+00:00","lastSuccessAt":"2026-11-19T13:41:57.1937409+00:00","error":null,"lastVerifiedAt":"2026-11-19T13:59:37.2994305+00:00","snapshotPublishedAt":"2026-11-19T13:33:30+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}