{"id":"GHSA-f82j-v89j-mf86","revision":null,"records":[{"revision":"b5655fae3a41404489ae8c6968113730","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-63752","aliases":[],"title":"SurrealDB before 3.1.0 RELATE Statement Record Overwrite","description":"SurrealDB before 3.1.0 contains an authorization bypass vulnerability in the RELATE statement that allows authenticated users with CREATE permission to overwrite existing edge records without UPDATE permission. Attackers can issue a RELATE statement with a SET id clause pointing to an existing edge id, causing the storage layer to silently overwrite the target record instead of rejecting the operation.","state":0,"publishedAt":"2026-07-20T12:04:43.796+00:00","modifiedAt":"2026-10-08T15:23:49.22+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.1.0\"\n                        },\n                        {\n                            \"version\": \"3.1.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:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"severity":"MEDIUM"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"severity":"MEDIUM"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-f82j-v89j-mf86","https://www.vulncheck.com/advisories/surrealdb-before-relate-statement-record-overwrite"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-63752","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-63752","identifiers":["CVE-2026-63752"]},"retained":false,"historicalAffected":[]},{"revision":"18fb3f6fd67c455483bdbfedf245c7c4","observedAt":"2026-11-10T06:05:24.831+00:00","statement":{"source":"euvd","id":"EUVD-2026-45923","aliases":["CVE-2026-63752","GHSA-j8qv-6jr5-7pcx"],"title":"SurrealDB before 3.1.0 contains an authorization bypass vulnerability in the RELATE statement that allows authenticated users with CREATE permission to overwrite existing edge records without UPDATE permission. Attackers can issue a RELATE …","description":"SurrealDB before 3.1.0 contains an authorization bypass vulnerability in the RELATE statement that allows authenticated users with CREATE permission to overwrite existing edge records without UPDATE permission. Attackers can issue a RELATE statement with a SET id clause pointing to an existing edge id, causing the storage layer to silently overwrite the target record instead of rejecting the operation.","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:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"severity":null}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-f82j-v89j-mf86","https://www.vulncheck.com/advisories/surrealdb-before-relate-statement-record-overwrite"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-45923","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jul 20, 2026, 12:04:43 PM","dateUpdated":"Oct 8, 2026, 3:23:49 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-45923","identifiers":["EUVD-2026-45923","CVE-2026-63752","GHSA-j8qv-6jr5-7pcx"]},"retained":false,"historicalAffected":[]},{"revision":"39110dc861984f26bb559a98833073f3","observedAt":"2026-11-04T03:59:20.726+00:00","statement":{"source":"nvd","id":"CVE-2026-63752","aliases":[],"title":"SurrealDB before 3.1.0 contains an authorization bypass vulnerability in the RELATE statement that allows authenticated users with CREATE permission to overwrite existing edge records without UPDATE permission. Attackers can issue a RELATE …","description":"SurrealDB before 3.1.0 contains an authorization bypass vulnerability in the RELATE statement that allows authenticated users with CREATE permission to overwrite existing edge records without UPDATE permission. Attackers can issue a RELATE statement with a SET id clause pointing to an existing edge id, causing the storage layer to silently overwrite the target record instead of rejecting the operation.","state":0,"publishedAt":"2026-07-20T12:19:45.007+00:00","modifiedAt":"2026-07-22T15:39:07.867+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:N/VI:L/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":5.3,"severity":"MEDIUM"},{"system":"CVSS 3.1 · disclosure@vulncheck.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"severity":"MEDIUM"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-f82j-v89j-mf86","https://www.vulncheck.com/advisories/surrealdb-before-relate-statement-record-overwrite"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-63752","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-285"],"productCriteria":["cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-07-20T12:19:45.007","lastModified":"2026-07-22T15:39:07.867"},"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-63752","identifiers":["CVE-2026-63752"]},"retained":false,"historicalAffected":[]},{"revision":"372a7924f9bd4549b078eec680bf3c9b","observedAt":"2026-11-04T03:59:15.952+00:00","statement":{"source":"osv","id":"GHSA-f82j-v89j-mf86","aliases":["CVE-2026-63752"],"title":"SurrealDB: `RELATE` overwrites existing edge records without `UPDATE` permission","description":"`RELATE` creates an edge record between two existing records, and SurrealDB enforces the `CREATE` permission on the edge table for this operation. When the statement included a `SET id = edge:existing` clause, however, the new edge's id ended up pointing at an record that was already in storage. Rather than failing because the target already existed — which is what a create operation should do — the storage layer silently overwrote the existing edge. A caller with `CREATE` permission could therefore replace any existing edge on the table, even without `UPDATE` permission for that record.\n\n### Impact\n\nAn authenticated user with `CREATE` permission on an edge table could overwrite any existing record on that table — including edges they had no `UPDATE` permission for — by issuing a `RELATE` whose `SET id = …` resolved to the target record's id. The attack is integrity-only.\n\n### Patches\n\nA patch has been introduced that adds an explicit `Statement::Relate` arm using `put_record` instead of `set_record` when the create path is selected. Conflicting writes now return a `RecordExists` error.\n\n- Versions 3.1.0 and later are not affected by this issue.\n\nThis is a behaviour change for applications that relied on RELATE … SET id = … to silently replace existing edges; after the patch those calls return RecordExists instead. Applications that need \"create or replace\" semantics should use UPSERT (which is correctly permission-gated for the update half).\n\n### Workarounds\n\nThe defect only fires when the `RELATE` statement includes a `SET id = …` clause that resolves to an existing edge id. Applications that let SurrealDB auto-generate the edge id (the default — `RELATE a:1 -> edge -> b:1 SET <data>` with no `id` override) are not affected, because auto-generated ids do not collide with existing records.\n\nWhere applications must use `SET id = …` (for example, to produce deterministic edge ids for idempotency), they should first verify that no record with the target id exists before issuing the statement, or restrict `CREATE` permission on the edge table to principals trusted with `UPDATE` on the same table.","state":0,"publishedAt":"2026-07-01T20:19:17+00:00","modifiedAt":"2026-11-04T02:56:12.324918+00:00","affected":[{"ecosystem":"crates.io","name":"surrealdb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.1.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-f82j-v89j-mf86","https://github.com/surrealdb/surrealdb/commit/79aef90d9baf56147d21f6dcea7a59189ade0eb3","https://github.com/orgs/surrealdb/discussions/110","https://github.com/surrealdb/surrealdb"],"sourceUrl":"https://github.com/advisories/GHSA-f82j-v89j-mf86","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-f82j-v89j-mf86","identifiers":["GHSA-f82j-v89j-mf86","CVE-2026-63752"]},"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-10T20:24:10.8656273+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-10T20:24:10.8656273+00:00","lastSuccessAt":"2026-11-10T20:24:11.1014027+00:00","error":null,"lastVerifiedAt":"2026-11-10T20:24:11.1014034+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-8859cf40d4337e24bd2f258cc7778fbad01bb24c79d057aaf34cf1dfc6f8917d-2421c1d9c7acbeb29d0beef05db65ba30f866dd8493d567d027977a7dcf898ca","complete":true,"records":423424,"lastAttemptAt":"2026-11-10T20:21:32.07925+00:00","lastSuccessAt":"2026-11-10T20:21:31.3142946+00:00","error":null,"lastVerifiedAt":"2026-11-10T20:21:32.07925+00:00","snapshotPublishedAt":"2026-11-10T19:24:42+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-96c5fae12ccd4cbbac841343b0e65301","complete":true,"records":13707,"lastAttemptAt":"2026-11-10T20:25:04.1663522+00:00","lastSuccessAt":"2026-11-10T20:25:04.161+00:00","error":null,"lastVerifiedAt":"2026-11-10T20:25:04.161+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13761,"expectedIdentifiers":13761,"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-10T20:24:10.8656273+00:00","complete":true,"records":1097,"lastAttemptAt":"2026-11-10T20:24:10.8656273+00:00","lastSuccessAt":"2026-11-10T20:24:16.2042236+00:00","error":null,"lastVerifiedAt":"2026-11-10T20:24:16.2042284+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-8a0a079a16384c6f8a07b9e766261b30","complete":false,"records":13713,"lastAttemptAt":"2026-11-10T20:24:41.8092265+00:00","lastSuccessAt":"2026-11-10T20:24:41.804+00:00","error":null,"lastVerifiedAt":"2026-11-10T20:24:41.804+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13758,"expectedIdentifiers":13761,"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-e41003cabc4bca6ffa7416326ea16ef9368e02303054ea1c5ab1ac33fb67507c","complete":true,"records":9935,"lastAttemptAt":"2026-11-10T20:24:04.6236682+00:00","lastSuccessAt":"2026-11-10T20:24:04.2273564+00:00","error":null,"lastVerifiedAt":"2026-11-10T20:24:04.6236682+00:00","snapshotPublishedAt":"2026-11-10T20:03:04+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-26503967ae4379db8f374089589d6e03fb15bd31f820c9e992aaf93840c2236c","complete":true,"records":1971,"lastAttemptAt":"2026-11-10T20:21:32.2201304+00:00","lastSuccessAt":"2026-11-09T21:02:20.472473+00:00","error":null,"lastVerifiedAt":"2026-11-10T20:21:32.2201304+00:00","snapshotPublishedAt":"2026-11-09T20:18:18+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-0e3796c351bac632fda8fc3b3641da2bc6f0237cd79e78b1e59d17ce0aa22d32","complete":true,"records":3081,"lastAttemptAt":"2026-11-10T20:24:10.7188782+00:00","lastSuccessAt":"2026-11-10T20:24:10.5326555+00:00","error":null,"lastVerifiedAt":"2026-11-10T20:24:10.7188782+00:00","snapshotPublishedAt":"2026-11-10T20: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-cf2375b2724ddc86142dd17e4a85328705e8819ef40e7e56fc4efe642554db3d","complete":true,"records":231631,"lastAttemptAt":"2026-11-10T20:23:51.5305504+00:00","lastSuccessAt":"2026-11-10T20:23:49.9124016+00:00","error":null,"lastVerifiedAt":"2026-11-10T20:23:51.5305504+00:00","snapshotPublishedAt":"2026-11-10T20:03:09+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}