Aggregates given a tenant are read in the enclosing query's tenant, leaking across tenants in AshSql
- CVE-2026-128360
- EUVD-2026-144040
Summary
CVE-2026-128360 is an incorrect authorization issue in the ash_sql package for multitenant applications. Aggregates given a tenant through the tenant option of Ash.Query.aggregate/5 were partly read in the tenant of the enclosing query, so with no tenant on that query, their values could be computed across every tenant, exposing other tenants' data. Aggregates over the same relationship were also grouped into one lateral join regardless of tenant, and with strategy(:context) multitenancy they were read in the enclosing query's schema. The problem affects ash_sql from 0.1.0 before 0.9.1. The CVSS score is 2.1, and the record does not list it as known exploited.
AI summary · verify against the vendor advisory
Description
Incorrect Authorization vulnerability in ash_sql allows a caller in a multitenant application to receive aggregate values computed from another tenant's rows. An aggregate can be given a tenant with the tenant option of Ash.Query.aggregate/5. AshSql.Aggregate.Lateral.add_aggregates/6 read only part of such an aggregate in that tenant. A field that is an aggregate or calculation, and what the aggregate's filter and sort refer to, were read in the tenant of the enclosing query, and with no tenant on that query they were read across every tenant. Aggregates over the same relationship were grouped into one lateral join without regard to their tenants, and with strategy(:context) multitenancy the aggregate was read in the schema of the enclosing query. This issue affects ash_sql: from 0.1.0 before 0.9.1.
Text from the CVE.org record.
Recommendation
ash-project ash_sql
- If you run a version from 0.1.0 to before 0.9.1update to 0.9.1 or laterMajor version change: expect breaking changes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
ash-project ash_sql
Affected versions Fixed in from 0.1.0 to before 0.9.1 0.9.1
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.