Aggregates read across tenants in AshSql
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-863.
Summary
ash_sql from 0.1.0 before 0.9.1 gives aggregates that were given a tenant the wrong tenant context. Aggregate values for a caller in a multitenant application can be computed from another tenant's rows, because the aggregate and its filter and sort are read in the enclosing query's tenant, or across all tenants when that query has no tenant. This is an incorrect authorization flaw (CWE-863). A local user with low privileges can read aggregate values belonging to other tenants.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ash-project | ash_sql | 0.1.0 to before 0.9.1 | 0.9.1 | Patch available | CNA |
- ash_sql Vendorash-project Affected 0.1.0 to before 0.9.1 Fixed in 0.9.1 Patch available CNA
CPE names CNA · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ash-project:ash_sql:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:ash-project:ash_sql:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
Upgrade ash_sql to version 0.9.1 or later, which fixes the flaw.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
- Fix · CNA ash_sql (ash-project) Fixed in 0.9.1
Timeline
- 2026-12-04 Threatist record created from CVE-2026-128360
References
More ash-project vulnerabilities
- TI-2026-56298 Query-complexity limit bypass via first/last pagination arguments in AshGraphql enables denial of service CVSS 4.0HIGH 8.7
- TI-2026-52572 Unbounded atom creation from client-supplied RPC field names in AshTypescript field formatter CVSS 4.0HIGH 8.7
- TI-2026-57010 Path traversal in AshAdmin file uploads via unsanitized client filename CVSS 4.0HIGH 8.3
- TI-2026-26840 Ash Framework: Ash.Type.Module.cast_input/2 atom exhaustion via unchecked Module.concat allows BEAM VM crash CVSS 4.0HIGH 8.2
- TI-2026-97077 Code execution and SQL injection via forged Ash keyset cursor CVSS 4.0HIGH 8.9
- TI-2026-54252 EEx template evaluation of prompt content in AshAi enables remote code execution CVSS 4.0HIGH 8.9
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences