Impact
This vulnerability occurs when a tenant executes an aggregate that includes a DISTINCT clause. The AshSql engine incorrectly rebuilds the outer query, dropping the tenant schema prefix. The result is that the aggregate is calculated against rows belonging to another tenant rather than the caller’s tenant. The attacker receives aggregated values that reflect data from a different tenant, thereby leaking sensitive information. The weakness is identified as CWE-863 (Authorization Control).
Affected Systems
The affected product is AshProject's AshSql database engine. Versions from 0.1.0 up to and including 0.7.0 contain the flaw. Any installation relying on these releases is vulnerable until the upgrade to 0.7.1 or later is applied.
Risk and Exploitability
The CVSS score of 2.1 indicates a low severity impact. Because the exploit requires the attacker to invoke a specific aggregate query in a tenant context, the difficulty is moderate, and no public exploits are documented. The EPSS score is unavailable and the vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the likely attack vector is through the application layer, requiring legitimate access to the database API or user privileges that allow execution of aggregate operations.
OpenCVE Enrichment