{"id":"GHSA-6g9v-7gq3-p2c6","revision":"7d0d6001b54649a285c8edf9dff64bdb","records":[{"revision":"7d0d6001b54649a285c8edf9dff64bdb","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-6g9v-7gq3-p2c6","aliases":["CVE-2026-63748"],"title":"SurrealDB: Authenticated callers can read fields hidden by field-level SELECT permissions via error messages","description":"A record user with UPDATE access could read field values that field-level SELECT permissions hid from them. Arithmetic operators and `extend` embedded the raw operand into their error messages, and UPDATE permission checks evaluate against the unreduced document — so triggering such an error against a hidden field returned its value in the resulting error.\n\n### Impact\n\nA record user issues an UPDATE that performs an incompatible operation against a hidden field — e.g. `UPDATE person:me SET probe = email + 1` when `email` is a string — and reads the value from the returned error (`Tried to compute \"alice@example.com\" + 1 …`). One field per operation, but the attacker can repeat against any field on any record they can UPDATE.\n\n### Patches\n\nA patch has been introduced that replaces the raw operand in every `try_*` operator and in `extend` with the operand's type name (`\"string\"`, `\"int\"`, `\"array\"`, etc.).\n\n- Versions 3.1.0 and later are not affected by this issue.\n\n### Workarounds\n\nAffected users who are unable to update should not grant UPDATE permission on records whose field-level SELECT permissions are expected to hide values from the same caller.","state":0,"publishedAt":"2026-07-01T20:16:52+00:00","modifiedAt":"2026-09-04T20:25:35.469978+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:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-6g9v-7gq3-p2c6","https://nvd.nist.gov/vuln/detail/CVE-2026-63748","https://github.com/surrealdb/surrealdb/commit/0aaa332c79195e4c40275eb5224aed3d52f5cf90","https://github.com/surrealdb/surrealdb","https://www.vulncheck.com/advisories/surrealdb-before-information-disclosure-via-error-messages"],"sourceUrl":"https://github.com/advisories/GHSA-6g9v-7gq3-p2c6","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-6g9v-7gq3-p2c6","identifiers":["GHSA-6g9v-7gq3-p2c6","CVE-2026-63748"]},"retained":false,"historicalAffected":[]}],"coverage":[]}