CVE-2026-81316
Low 2.1No known exploitationFix availableSame-named aggregates with differing filters are conflated in AshSql
Record last updated
CVSS score
Low on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 8% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
Incorrect Authorization vulnerability in ash-project ash_sql allows a caller to receive an aggregate value computed over rows a more restrictive filter should have excluded, disclosing counts, sums, or lists across an authorization or tenancy boundary. AshSql.Aggregate.different_queries?/2 reports two aggregate queries as different only when their filter and their sort both differ. Aggregate queries rarely carry a sort, so two aggregates that share a name but carry entirely different filters compare as identical. The colliding aggregate keeps its name and is treated as already computed, and select_aggregates returns the first-registered variant's value. The same name reaches the builder twice with different filters when actor or tenant context is stamped into each aggregate's query, so a narrowly filtered aggregate can be served the value of a previously registered broad one. This issue affects ash_sql: from 0.1.0 before 0.7.1.
Weakness: CWE-863
Patching and mitigation
- Patch status
- Fix available (source: CVE record (EEF))
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| ash-project | ash_sql | from 0.1.0 before 0.7.1 | 0.7.1 | CVE Program |
| ash-project | ash_sql | from dd092ed273dec7bd2194352f24a39229fc8ae68b before 4b95468e5434a3526571414219719c9518be6694 | 4b95468e5434a3526571414219719c9518be6694 | CVE Program |
Timeline
Disclosure
CVE record published by EEF
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (EEF)
Vendor guidance and references
- Fix commit 4b95468 in ash-project/ash_sql (opens in a new tab)patch
- https://github.com/ash-project/ash_sql/security/advisories/GHSA-v7pf-wjxc-7j5m (opens in a new tab)related, vendor-advisory
- EEF CNA record for CVE-2026-81316 (opens in a new tab)related
- Introducing commit dd092ed in ash-project/ash_sql (opens in a new tab)related
- OSV record EEF-CVE-2026-81316 (opens in a new tab)related