Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. surrealdb
  4. ›
  5. GHSA-hv6h-hc26-q48p

GHSA-hv6h-hc26-q48p: SurrealDB: Field-level SELECT permissions bypassed via graph and reference traversals

June 19, 2026 (updated September 4, 2026)

A record user could read field values hidden from them by field-level SELECT permissions by reaching the records through a graph-edge (->) or back-reference (<~) traversal instead of a direct SELECT.

When a table was readable at the table level but carried a field hidden by a field-level permission (DEFINE FIELD secret ON knows PERMISSIONS FOR select NONE), a direct SELECT * FROM knows hid secret — but reaching the same records through a traversal that yields full objects — person:bob->(SELECT * FROM knows), person:bob<~(SELECT * FROM comment), or a projected target vertex ->knows->(SELECT * FROM person) — returned it intact.

The root cause: the shared resolve_record_batch helper used by GraphEdgeScan (FullEdge) and ReferenceScan (FullRecord) enforced only the table-level SELECT permission and pushed raw record data, never running the field-level filtering (build_field_state / filter_fields_by_permission) that ordinary table scans and fetch_record apply.

References

  • github.com/advisories/GHSA-hv6h-hc26-q48p
  • github.com/surrealdb/surrealdb/security/advisories/GHSA-hv6h-hc26-q48p
  • nvd.nist.gov/vuln/detail/CVE-2026-63738
  • www.vulncheck.com/advisories/surrealdb-before-field-permission-bypass-via-traversal

Code Behaviors & Features

Detect and mitigate GHSA-hv6h-hc26-q48p with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.1.0 before 3.1.5

Fixed versions

  • 3.1.5

Solution

Upgrade to version 3.1.5 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

cargo/surrealdb/GHSA-hv6h-hc26-q48p.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:45 +0000.