SurrealDB before 4.0.0 Field Permission Bypass via Wildcard Array-Index Drift
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| surrealdbsurrealdb |
< 4.0.0→ 4.0.0 |
4.0.0 |
Original description The description as published by the source.
SurrealDB before 4.0.0 contains an incorrect authorization vulnerability in filter_fields_by_permission that allows authenticated record users to read denied child field values. Attackers can query rows where overlapping items[] and items[].secret permissions compact arrays, causing shifted elements to retain field values denied by SELECT permissions.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- web github.com