Executive brief
AshSql is a data querying and aggregation library used in Elixir applications. A vulnerability in aggregate query handling allows attackers to bypass authorization filters and receive aggregated data (counts, sums, or lists) that should have been restricted, potentially exposing sensitive information across tenant or authorization boundaries.
Technical details
The vulnerability exists in AshSql.Aggregate.different_queries?/2, which incorrectly identifies aggregate queries as identical when they share the same name but carry different filters, only comparing filter and sort criteria. When actor or tenant context is stamped into each aggregate's query, a narrowly filtered aggregate query collides with a previously registered broad aggregate, causing the library to return the first-registered (broader) value. This is a logic error in query deduplication that allows authorization contexts to be bypassed. The flaw affects versions 0.1.0 through 0.7.0; patch 0.7.1 is available.
Affected products
- ash-project ash_sql 0.1.0 before 0.7.1
Timeline
- 2026-08-30: disclosed
- 2026: patched: Version 0.7.1 available