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.
Exploitability
AV:NAC:LAT:NPR:LUI:NVulnerable System
VC:LVI:NVA:NSubsequent System
SC:NSI:NSA:N5.3/CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NAccess Control