CVE-2026-109333: Rust Tenant Boundary Gate Confines Only Record Principals

Tenant-boundary gate is keyed to the wrong principal set: its success path exempts every principal that is not a record user (`if !$AUTH.is_record() { return Ok(()) }`), so any other authenticated principal whose session's *selected* namespace/database was steered to a foreign tenant (`USE NS ... DB ...` or the RPC `use` method) passes the gate unchecked and

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Rust
greprules fetch cve-2026-109333-rust-tenant-boundary-gate-confines-only-record-principals --engine opengrep

Description

Tenant-boundary gate is keyed to the wrong principal set: its success path exempts every principal that is not a record user (`if !$AUTH.is_record() { return Ok(()) }`), so any other authenticated principal whose session's *selected* namespace/database was steered to a foreign tenant (`USE NS ... DB ...` or the RPC `use` method) passes the gate unchecked and